0

what is the purpose of using main() ?

10th Nov 2016, 1:58 AM
Nida Mukhtar
Nida Mukhtar - avatar
3 Answers
+ 2
main is entry point for your program. system call your main function to start execution.
10th Nov 2016, 8:37 AM
Harish Nandoliya
Harish Nandoliya - avatar
0
when the program is being executed , after loading all the libraries and macros, the main funtion will be called implicitly inorder to start the execution.
10th Nov 2016, 2:20 AM
NIKHIL CM
NIKHIL CM - avatar
0
the starting point of program execution is from main. It is built like that. Hence main it is mandatory to include main.
11th Nov 2016, 2:49 AM
NIKHIL CM
NIKHIL CM - avatar