The string can be defined as the
one-dimensional array of characters terminated by a null ('\0'). The character
array or the string is used to manipulate text such as word or sentences.
There are two ways to declare a
string in c language.
- By char array
char ch[10]={'j', 'a', 'v', 'a',
't', 'p', 'o', 'i', 'n', 't', '\0'};
No comments:
Post a Comment