A simple example for printf : Console Output String « Console « C / ANSI-C






A simple example for printf

#include <stdio.h>

int main(void)
{
  printf("This is an example of redirection.\n");

  return 0;
}


           
       








Related examples in the same category

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