Why is main() function special? Give
two reasons.
Answers
Answer:
The main function is special because it is entry point for program execution. It plays the role of door in a house. ... Similarly, main function is important and compulsory as execution starts from here.
Answer:
The main function is special because it is entry point for program execution.
It plays the role of door in a house. Consider you want to enter house to perform various daily activities (functions) like sleep, cook, clean, watch T.V etc. Is entry possible without door? Your house can be beautiful from inside but without entry can you enjoy the happiness? No.
Similarly, main function is important and compulsory as execution starts from here. Also, there should be one instance of main function. This makes it special.
plzzzzzzzzzzzzzzzzzzzz mark it as brainest