The main Function The main is a part of every C program. C permits diferent forms of main statement. Following forms are allowed. main() int main void main() main(void) void main(void) int main(void) The empty pair of parentheses indicates that the function has no arguments. This may be explicitly indicated by using the keyword void inside the parentheses. We may also specify the keyword int or void before the word main . The keyword void means that the function does not return any information to the operating system and int means that the function retúrns an integer value to the operating system. When int is specified, the last statement in the program must be "return O" . For the sake of simplicaty, we use the first form in our program. Example: // Programm of Addition // Written by Santosh Asole #include<stdio.h> main () { int x, y, z; x=10;
About C programming language i.e. basic concept, program of C,array,pointer,function,union, structure,loop, condition,file handling, preprocessor.