Tutorials
C Language
The following basic steps is carried out in executing a C Program.
1. Type the C lanuage program.
2. Store the program by giving a suitable name and following it with an extension .c
3. Compile the program
4. Debug the errors if any, that is displayed during compile.
5. Run the program.
|
.
|
The documentation section consists of a set of comment lines giving the name of the program, the author and other details such as a short description of the purpose of the program.
The link section provides instructions to the compiler to link functions from the system library.
The definition section defines all the symbolic constants. The variables can be declared inside the main function or before the main function.
Declaring the variables before the main function makes the variables accessible to all the functions in a C language program, such variables are called Global Variables.
Declaring the variables within main function makes the usage of the variables confined to the main function only and it is not accessible outside the main function.
Every C program must have one main function. Enclosed in the main function is the declaration and executable parts.
In the declaration part we have all the variables.
There is atleast one statement in the executable part.
The two parts must appear between the opening and closing braces
The sub-program section contains all the user-defined functions that are called in the main function.
User-defined functions are generally placed immediately after the main function although they may appear in any order.
First Page: C Programming - An Overview
| good discribe |
| so easy and nice flow of language with description |
| I like the way U present y're materials;god bless all of you. |
| Really very nice video |
| Really Nice content |
| I want to know the use of pcap.h to capture network packets |
| one of the best example of c |