Pages

Friday, January 27, 2012

Printing Out Hello World


To print out "Hello World" line, we need the fooling elements in our program.

  1. Header File - provides the printf( ) function.
  2. Main Function - starting point of the program.
  3. Printf( ) Function - this function will be the one to print out the line.
  4. Getch( ) Function - ends the program.
Desired Output:

Code:
---------------------------------------------------------------
#include<stdio.h>
main()
{
printf("Hello World"); 
getch();
}
---------------------------------------------------------------

Remember: In printing out strings don't ever forget to put double quote in the
 start to end of the line.Do not leave statements without semicolon 
that indicates termination.

Note: If there`s wrong about the info. please take time to notify me.

No comments:

Post a Comment