Skip to main content

The main() function

Main() function:
                                The main function indicates the beginning  of a c++ program. The statements within this function are the main body of the c++ program.If main() function is not included, the program is not compiled and an error message is generated.

syntax:

             main()
            {                 
                       
                        program statments........
           
             }



Comments

Post a Comment