0
Hey I'm new can anyone tell me about what is main..? in little more description
2 Antworten
+ 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.