C - Operators - Discussion

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

 



Q.

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

int a = 4, b = 0;
if (a < 5)
b = 4;
else if (a < 10)
b = 3;
else if (a > 5)
b = 2;
else
b = 1;

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

Answer: Option A
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion