Displaying a string : Console Output String « Console « C / ANSI-C






Displaying a string



#include <stdio.h>

void main()
{
  printf("The character \0 is used to terminate a string");
}



           
       








Related examples in the same category

1.Displaying a Quotation: the main function
2.prints Hello on standard output
3.Print the string in the reverse order
4.Read and output string
5.Output string to console
6.A simple example for printf
7. Output a string to stdout: how to use puts