Which of the following declaration throw run-time error?
Answer: D
Correct answer: None of the mentioned
None of the three reaches run time. Each is a type error caught at compilation: &c in the first has type int ***, the second is the same after the & and * cancel, and the third dereferences c twice in its own initialiser. A run-time error would require a program that compiles first.
Please log in or register to report this question.