Computer Science, asked by ftfarii, 1 month ago

List any three string functions and its uses.

Answers

Answered by papiyaghosh1976kgp
1

Answer:

The most common functions used from the library are:

strlen("name of string")

strcpy( dest, source)

strcmp( string1, string2 )

strstr( str1, str2 )

Explanation:

What are the functions of string?

String functions are used in computer programming languages to manipulate a string or query information about a string (some do both). Most programming languages that have a string datatype will have some string functions although there may be other low-level ways within each language to handle strings directly.

Answered by Anonymous
1

Answer:

The most common functions used from the library are:

strlen("name of string")

strcpy( dest, source)

strcmp( string1, string2 )

strstr( str1, str2 )

Explanation:

The nine most commonly used functions in the string library are:

strcat - concatenate two strings.

strchr - string scanning operation.

strcmp - compare two strings.

strcpy - copy a string.

strlen - get string length.

strncat - concatenate one string with part of another.

strncmp - compare parts of two strings.

Similar questions