Why we need to use # include < string.h >



# include < string.h >: String Functions. The string functions are present in the string.h header file. Some string functions are given below:
strlen(S)               It gives the no. of characters including spaces present in a string S.
strcat(S1, S2)      It concatenates the string S2 onto the end of the string S1. The string S1 must have enough locations to hold S2.
strcpy(S1, S2)     It copies character string S2 to string S1. The S1 must have enough storage locations to hold S2.
Etc.
Next Post Previous Post
No Comment
Add Comment
comment url