- String is a sequence of character which terminated by null character("\0").
- String basically a 1-D array of characters.
- Size of string is one more than the character in string, for example :"hello" 5 character but size is 6.
Example:- declare and initialize an string, which is same as array
NOTE:-
- printf("%c",hi[i]); print character
- printf("%s",hi); print whole string
Functions Related to String:-
Comments
Post a Comment