C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 29)
29.
Which of the following problem causes an exception?
Missing semicolon in statement in main().
A problem in calling function.
A syntax error.
A run-time error.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
11 comments Page 2 of 2.

Vaishnavi said:   9 years ago
Runtime error only occur when you run a program (it must have compiled and linked without errors). When you run the executable and something goes wrong then we call it a runtime error.

If runtime error occurs, the program would crash saying some (ex. Floating) exception or segmentation fault.


Post your comments here:

Your comments will be displayed after verification.