1.

What are the string functions? List some string functions available in C.

Answer»

Strings are an array of characters that END with a null character (‘\0’). The presence of null character SPECIFIES the end of a string. Remember, strings should always be ENCLOSED by DOUBLE quotes.

Most used functions in the string library are listed below:
  • strlen
  • strcat
  • strchr
  • strcpy
  • strncat
  • strcmp etc


Discussion

No Comment Found