C | Loops & Control Structure | Question 4
i = 3;
What is the output of the above program?
(D) Compile-time error
Explanation: Expression gets evaluated in cases. The control goes to the second case block after evaluating 1+2 = 3 and Quiz is printed.
Take a step-up from those “Hello World” programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C
course to start learning today.