Tuesday, 17 July 2012

WRITING FIRST C PROGRAM?


Hello world program
hello.c
--------------------------------------------------------------------
main()
{
printf(“Hello world!”);
}
-----------------------------------------------------------------------
1.main is the function/block where execution of program starts.
2.printfis used to display some message on standard output device(MONITOR).
3.Open Curly Brace for starting a function and Close Curly Brace for Ending of Function Block.
4.Semi colon used for ending a line/statement.  

for creating and compile your first program follow the steps :
Creating and Compiling a C program under linux?

No comments:

Post a Comment