C - Operators - Discussion

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

 



Q.

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

int y = 4, z = 3;
if (y > 4)
{
z = 2;
y = y - 1;
}
else
z = 1;
y = z;

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

Answer: Option A
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion