C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 29)
29.
Which of the following problem causes an exception?
Discussion:
11 comments Page 1 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.
If runtime error occurs, the program would crash saying some (ex. Floating) exception or segmentation fault.
Dhir said:
1 decade ago
When illegal use of memory or address that means program having run time error & these program have no any syntax error, so no compilation error.
Exp. Run time error- segmentation fault or core dumped.
Exp. Run time error- segmentation fault or core dumped.
Harshal said:
1 decade ago
Exceptions provide a way to react to exceptional circumstances (like runtime errors) in our program by transferring control to special functions called handlers.
Payal Y. Makan said:
1 decade ago
The remaining 3 options are compile time errors and exceptions are run time errors that occur when we run the program.
Premlata said:
1 decade ago
Compile time based on programming syntax error checking.
Run time based on the logic of program.
Run time based on the logic of program.
Venkatesh said:
1 decade ago
I want to know differences between runtime and compile time?
Shailendra said:
10 years ago
Exception is process to find out the error in the program.
Sri said:
10 years ago
Exception are check the error for run time.
Xyz said:
1 decade ago
Exceptions are thrown during runtime..
Ojaswi said:
1 decade ago
What does causing an exception mean ?
(1)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers