C Programming :: Control Instructions - Discussion
Home > C Programming > Control Instructions > MCQs Questions Discussion
22 / 33
What is the value of b?
int a = 0, b = 2;
if (a = 0)
b = 0;
else
b *= 10;
int a = 0, b = 2;
if (a = 0)
b = 0;
else
b *= 10;
A0
B20
C2
DNone of the above
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
SHORTCUT
== statement is used to find out equality whereas = just assigns value to a.
Read Full Answer
Report Error
Please Login First Click Here