C | Loops & Control Structure | Question 20
(A) x = 4
(B) x = 2
(C) Compiler Error
(D) x = 0
Explanation: Value of x would be 2. Note the semicolon after first if statement. x becomes 0 after the first if statement. So control goes to else part of second if else statement.
Quiz of this Question
My Personal Notes arrow_drop_up
Please Login to comment...