Print a const string in c

Print a const string in c


We can print a const string in c like below:

printf("Hello World"); 
or
const char string[] = "Hello World!";
printf("%s", string);

Comments