Tuesday 17 July 2012

SOME NOTE REGARDING C PROGRAM


1.Every C program requires a main()function.(complier restrict us to use multiple main functions).
2.The main functions having a important roll ( the execution of program starts from here).
3.As C is a Structural language so every thing must be in a block. Out side block statements never executes. Execution of function/block starts with a opening curly brace and ends at corresponding ending curly brace.
4.all the words in a program line must be separated from each other by at least a space,or a tab,or a punctuation mark.
5.C programs are written in lowercase letter. But symbolic names and strings can be written in both case.
6.Every statement in C programs ends with semicolon.
7.all variables must be declared before their first use in the program.
8.Including of header file must be at the beginning of the program.
9.header files contain only declarations (does not contain any executable code).
10.comment lines are removed in preprocessor stage of compilation .So we can put a comment line almost every where.
11.line starting with #character are for preprocessor. Those lines are Processed in preprocessor stage of compilation.


links
-----------------------

No comments:

Post a Comment