C - Control Statements - Discussion

You Are Here :: Home > C > Control Statements - Discussion

 



Q.

Which one of the following will set the value of y to 5 if x has the value 3, but not otherwise?

A. if (x = 3) y = 5; B. if x == 3 (y = 5);
C. if (x == 3); y = 5; D. if (x == 3) y = 5;

Answer: Option D
Explaination:

 


No Explanation



Discussion

Your Comments Goes here...
NameDiscussion