[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

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 :: Cisco

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here