Computer Science, asked by srijansarkar123, 10 months ago

Why is main() function special? Give
two reasons.

Answers

Answered by virgoanup2003
24

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.

Answered by sommethingspecial200
31

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

Similar questions