Skip to main content

Briefly explain the different form of main() function used in C.


The main is a part of every C program permits different types of main statement.
Following types allowed-

1.main ()
2. int main ()
3. void main ()
4. main(void)
5. void main(void)
6. int main(void)

The empty pair of parentheses that the functions has no argument.we may also specify the keyword void means that the function does not return any information to the operating system and integer means that the function return an integer value to the operating system. When integer is speciffed, the last statement of the program must be return "0".



-------------------------------------
Posted By -