give four examples of string functions in C++
Answers
Answered by
1
i)strlen():- Calculates the length of string
ii)strcpy():- Copies a string to another string
iii)strcat():-Concatenates(joins) two strings
iv)strcmp():-Compares two string
biriyani71:
thank you
Answered by
1
Answer:
strcat: The strcat() function will append a copy of the source string to the end of destination string. The strcat() function takes two arguments: ...
strrchr: In C/C++, strrchr() is a predefined function used for string handling. ...
strcmp: strcmp() is a built-in library function and is declared in <string.
Similar questions