Welcome Guest | Sign in | Register
Functions - Discussion Page For Q.10760 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Functions > Questions and Answers

Q: How many times main() will get called?
main()
{
printf("\n Main Called Again");
main();
}
A. 1 B. 100
C. main cannot be called recursively D. Infinite

Answer and Explanation

Answer:Infinite

Explanation:
There is no condition in the main() to stop the recursive calling of the main() hence it will be called infinite no of times.

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.