+ 5

What does int main() means??

6th Aug 2017, 5:18 AM
Have fire
Have fire - avatar
2 Respostas
+ 26
Every programming language you will come across has a central point of execution (the function, object or line from where the execution of your programme starts). In C, main function is the central point of execution. Now main being a function it should follow the syntax of a function defined in C i.e. return_type function name(arguments). The return_type in the syntax is used to specify the caller function/process(the function/process that calls the said function) that the called function(the said function) will return some data at the end of its process. This data can be then used by the caller function in its own processes.
6th Aug 2017, 5:20 AM
Adi Pratama
Adi Pratama - avatar
0
hmmm ok
27th Sep 2017, 9:50 AM
Keefe Bunyad
Keefe Bunyad - avatar