Strings in C Programming
- C language does not support strings as a data type.
- To read a complete sentence Neglecting spaces:
- scanf("%[^\n]",&str);
- gets(text);
- String handling functions:
- STRCAT() It is used to concatenate(combine) two string
- STRLEN() It is used to show length of a string
- STRREV() It is used to show reverse of a string
- STRCPY() Copies one string into another
- STRCMP() It is used to compare two string
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment