C - Operators - Discussion

You Are Here :: Home > C > Operators - Discussion

 



Q.

What will be the value of w after the following section of code executes:

int w = 4, q = 3;
if (q > 5)
if (w == 7)
w = 3;
else
w = 2;
else
if (w > 3)
w = 1;
else
w = 0;

A. 0 B. 1
C. 2 D. 3

Answer: Option B
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion