Single Choice Not Set

QWhat is the output of this C code?
    int main()
    {
        if (~0 == 1)
            printf("yes\n");
        else
            printf("no\n");
    }

ID: #1242 Operators and Enums in C Language 728 views
Question Info
#1242Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • A Yes
  • B No
  • C Compile time error
  • D Undefined
Correct Answer

Explanation

Option B

Share This Question

Challenge a friend or share with your study group.