Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    if (7 & 8)
    printf("Honesty");
        if ((~7 & 0x000f) == 8)
            printf("is the best policy\n");
}

A. Honesty is the best policy

B. Honesty

C. is the best policy

D. No output

Answer: Option C


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals