C | Loops & Control Structure | Question 16
What is the output of the following program?
(B) Geeks Quiz
(C) Geeks Quiz GeeksQuiz
(D) Compile-time error
Explanation: An expression gets evaluated in a case label. Both the cases used are evaluated to 1(true). So compile-time error: duplicate case value is flashed as duplicated cases are not allowed.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important C++ Foundation and STL concepts with the C++ Foundation and STL courses at a student-friendly price and become industry ready.