Saturday, 15 February 2014

First 'C' Program:"Hello World"

A program to print "Hello World" on the output screen.

main()
{
  printf("Hello World");
}

Explanation:

                  Here:
                         "{"-->start of the program
                         main()-->driver of the program(always used in a program and never terminated with a semicolon";").
                         printf()-->to printf "Hello World" on the output screen
                         "}"-->end of the program.



No comments:

Post a Comment