C | Loops & Control Structure | Question 9
(B) Runtime Error
(D) Compiler Error
Explanation: There is a bug in the above program. It goes inside the do-while loop for c = 0. Also as the increment is post increment, so (no/0) will create a divide by 0 error. So it fails during runtime.
Quiz of this Question
My Personal Notes arrow_drop_up
Please Login to comment...