Give two reasons why main function is special ?
Answers
Answered by
1
Answer:
HEY MATE
Explanation:
When the operating system run C program it passes control of the computer over to death program even so the operating system found the main function and was able to pass control to the function - which did nothing but immediately return control back to the operating system .
HOPE THIS ANSWER IS HELPFUL TO U AND MARK ME AS BRAINLIAST
Answered by
0
Answer:
Explanation:
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
Similar questions