Vidyalelo
C Programming · Q295

C Fundamentals

Programming · C Programming · question 295

Q295

What will be the output of the following C code? #include int main() if (7 & 8) printf("Honesty"); if ((~7 & 0x000f) == 8) printf("is the best policy ");

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

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board