Example & Tutorial understanding programming in easy ways.

What is the string in C language?

-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

Read More →