Single Choice Not Set

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

ID: #1221 Operators and Enums in C Language 3,815 views
Question Info
#1221Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

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

Explanation

Option C

Share This Question

Challenge a friend or share with your study group.