Sail E0 Webinar
Question

What is the output of this C code?    int main()    {        int a = 10, b = 10;        if (a = 5)        b--;        printf("%d, %d", a, b--);    }

Options:
A .  a = 10, b = 9
B .  a = 10, b = 8
C .  a = 5, b = 9
D .  a = 5, b = 8
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