Sail E0 Webinar
Question

What is the output of this C code?    int main()    {        if (7 & 8)        printf("Honesty");            if ((~7 & 0x000f) == 8)                printf("is the best policy\n");    }

Options:
A .  Honesty is the best policy
B .  Honesty
C .  is the best policy
D .  No output
Answer: Option C


None.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers