Displaying a Quotation: the main function : Console Output String « Console « C / ANSI-C






Displaying a Quotation: the main function

/*Displaying a Quotation */

#include <stdio.h>  /* stdio.h is a preprocessor directive     */

void main()        /* void main() identifes the function main()   
                           The entry point of the program.
                        */
{                                       /* "{" marks the beginning of main()   */
  printf("Hi!");  /* This line displays a String */
}                                       /* "}" marks the end of main()         */




           
       








Related examples in the same category

1.Displaying a string
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