0

Hey I'm new can anyone tell me about what is main..? in little more description

11th Sep 2017, 5:17 AM
Om Saxena
2 Respuestas
+ 3
If you want some commands to be executed, then you have to embed those commands in a FUNCTION. The syntax or grammar for a function is function name () { several commands written here. return 0 }..... eg xyz () { cout <<"I Love programming. "; return 0; }.... Here, the name of the function is xyz. Similarly, main is the name of the function, which has to be used right in the beginning of the program. Your main commands for the execution of the program are written right in the beginning.
11th Sep 2017, 8:38 PM
Miss Rashmi Lulla