Wednesday 23 January 2008

What is main function in c?








Every c program starts with a main function and end with null statement.

Properties of main function:

1. Any c program can have only one main function.

2. main function is called by operating system.

3. main is not keyword of c. So any variable name can be main.

4. Programmer can also call the main function.

5. Default return type of main function is int and

No comments:

Post a Comment