-String is the char array.
- There is always be a NULL at the end of the string to show the ending of the string.
program:
main()
{
char str[]="Mystring";
printf("%s",str);
printf("%c",str[0]);
}
output:
Mystring
M