String in C
String is a collection of characters. They are arranged one after another in memory.
To mark the end of string, C uses the NULL character.
Strings in C enclosed within double quotes.
Example, "My age is 19"
is a string.
Initializing String
char month[] = { 'J' , 'a' , 'n' , 'u' , 'a' , 'r' , 'y' , 0 };
Program
Output
Join Our Social Media Connections
0 Comments