C Programming :: Control Instructions - Discussion
Home > C Programming > Control Instructions > MCQs Questions Discussion
84 / 33
func()
{
int x=1;
if(x=1)
x=1000;
else
x=10;
return x;
}
What is the return value?
A1
B10
C1000
DError
Answer: Option (Login/Signup)
Show Explanation
if(x=1) and not if(x==1)
The answer will be 10
Asked In ::
TRICK
its
if(x=1) and not if(x==1)
The answer will be 10
Read Full Answer
Report Error
Please Login First Click Here