Cisco Written Test Qs.(Technical Aptitude) :: Functions - Discussion
Home > Freshers Archives > Cisco Placement Questions & Answers > MCQs Questions Discussion
84 / 123
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
its
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