Skip to main content

C: 9. Strings

Strings are actually one-dimensional array of characters terminated by a null character '\0'. Each character in the array occupies one byte of memory, and the last character must always be 0.

Syntax:-

char ch[10]={'j', 'a', 'v', 'a', 't', 'p', 'o', 'i', 'n', 't', '\0'};  

Exercises:- 

Comments