C
Programming and Technical
Q. Predict the output or error
A. main()
{
main();
}
A. Runtime error : Stack overflow.
Explanation: main function calls itself again and again. Each time the function is called it's return address is stored in the call stack. Since there is no condition to terminate the function call, the call stack overflows at runtime. So it terminates the program and results in an erro
Read Solution (Total 0)
C Other Question