Can we use resume in error handling i.e. in the catch block
Answer Posted / shiva
no can not using resume in c++
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Are iterators pointers?
Define a constructor?
Define a pointer to a data member of the type pointer to pointer?
Can comments be longer than one line?
Does c++ support multilevel and multiple inheritances?
What is the difference between new() and malloc()?
Is python better than c++?
What is null pointer and void pointer?
Explain the difference between realloc() and free() in c++?
What are literals in C++?
What is abstraction c++?
What will happen if a pointer is deleted twice?
What is atoi?
Define pure virtual function?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02