String Constants in C language


String Constants:
A string constant is a collection of characters that are enclosed in two double quotes. In generally a string constant is represented as collection of characters constants.
Example: “Mahatma Gandhi”
               “123”  ,  “atoz”


Simple program:
#include<stdio.h>
main( )
{
printf("This is a line of text to output.\n");
printf("And this is another ");
printf("line of text.\n\n");
printf("This is the third line.\n");
}

Followers