Saturday, December 5, 2009

1.2 WRITING THE FIRST PROGRAM OF C

We will start writing a very simple C program and learn the instructions of a C program through it.

ex1.1

#include

main()
{

printf ("welcome to c programming\n")

}


This is a very simple program used to print the message "welcome to c programming" on the output screen.It gives an idea of the the structure of a C program.

#-->used as a compiler derivative
-->standard input/output library
main-->starting point of executing of a program
{,}-->braces are used to start and end every block of a program
printf-->an output statement used to display any message on the screen

No comments:

Post a Comment