Computer Science, asked by ramureddy8309970688, 3 months ago

Explain different string function with example

Answers

Answered by manishyadav482795
2

Answer:

Hey mate here is the best answer you need I hope it is helpful to you please follow me and mark as brainliest

Explanation:

See for example Concatenation below. The most basic example of a string function is the length(string) function. This function returns the length of a string literal. e.g. length("hello world") would return 11.

Answered by biswasriya142005
10

Answer:

String is an array of characters. In this guide, we learn how to declare strings, how to work with strings in C programming and how to use the pre-defined string handling functions.

We will see how to compare two strings, concatenate strings, copy one string to another & perform various string manipulation operations. We can perform such operations using the pre-defined functions of “string.h” header file. In order to use these string functions you must include string.h file in your C program.

String functions are used in computer programming languages to manipulate a string or query information about a string (some do both). ... The most basic example of a string function is the length(string) function. This function returns the length of a string literal. e.g. length("hello world") would return 11.

A string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers. ... For example, the word "hamburger" and the phrase "I ate 3 hamburgers" are both strings. Even "12345" could be considered a string, if specified correctly.

Explanation:

I think it's help you.

Please please please Mark is as brainlist.

Similar questions