+ 3

Meaning of main function

What is the meaning of main() in c or c++?? It is DECLARATION, DEFINITION OR CALLING when we write int main() in every program??

25th May 2018, 4:42 PM
Amit Kumar
Amit Kumar - avatar
6 Réponses
+ 2
main is the actual fuction that gets executed when you run a program
25th May 2018, 4:55 PM
‎ ‏‏‎Anonymous Guy
+ 1
I guess it's about with the structure of c++ language. If im not wrong something is being sent to main function with hardware to main function at the beginning of program starts so it is necessary.
25th May 2018, 4:45 PM
Mustafa K.
Mustafa K. - avatar
+ 1
It's definition.
26th May 2018, 9:12 AM
lion
lion - avatar
0
I know that it is an inbuilt function in C but i want to know what we are doing is definition of function or calling and what is happening in this whole process. Who is responsible for execution of main and in what way this happen??
25th May 2018, 5:09 PM
Amit Kumar
Amit Kumar - avatar