A Way For Learning

Strings in C Programming

No comments
  • 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

No comments :

Post a Comment