Sail E0 Webinar
Question
What is the output of this C code?    int main()    {        int y = 1;        if (y & (y = 2))            printf("true %d\n");        else            printf("false %d\n");     }
Options:
A .  true 2
B .  false 2
C .  Either option a or option b
D .  true 1
Answer: Option C


None.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers