C
Programming and Technical
Programming
Output
main()
{
main();
}
A. 1
B. 0
C. Compile time error
D. Run time Error
Read Solution (Total 17)
-
- Run Time Error or Segmentation Fault
It occurs when a program attempts to access a memory location that is not allowed or attempts to access a memory location in a way that is not allowed. Stack Overflow and hence Segmentation Fault - 10 years agoHelpfull: Yes(8) No(2)
- no error. program enters infinite loop (tested on turboC)
- 10 years agoHelpfull: Yes(6) No(2)
- no output no error
program enters a recursive call doing nothing - 10 years agoHelpfull: Yes(2) No(0)
- The program loops infinitely.. recursive function call is made
- 10 years agoHelpfull: Yes(1) No(0)
- no error amd no output
- 10 years agoHelpfull: Yes(1) No(1)
- this program doesn't going to produce any output but responsible for infinite loop.there is no run-time error or compile time error .
- 10 years agoHelpfull: Yes(1) No(0)
- infinite loop
- 10 years agoHelpfull: Yes(1) No(0)
- compile time error
error in declaration of syntax
- 10 years agoHelpfull: Yes(0) No(3)
- Run Time Error or Segmentation Fault.
- 10 years agoHelpfull: Yes(0) No(1)
- no output no error
program enters a recursive call doing nothing - 10 years agoHelpfull: Yes(0) No(0)
- Segmentation fault.
tested on online c compile and execute IDE. - 10 years agoHelpfull: Yes(0) No(0)
- No errors or program output.
- 10 years agoHelpfull: Yes(0) No(0)
- run time error
- 10 years agoHelpfull: Yes(0) No(0)
- it should be execute infinite times....
- 10 years agoHelpfull: Yes(0) No(0)
- It executes infinite times but does not shows any output
- 9 years agoHelpfull: Yes(0) No(0)
- infinite loop because main function keep on calling itself again and again
- 9 years agoHelpfull: Yes(0) No(0)
- compile time error, because compiler never allows more then one main() function at a time
- 9 years agoHelpfull: Yes(0) No(0)
C Other Question