Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    if (7 & 8)
    printf("All");
    if ((~7 & 0x000f) == 8)
    printf("that glitters is not gold.\n");
    }
    1. All
    2. All that glitters is not gold
    3. that glitters is not gold
    4. Compilation Error
    5. None of these
Correct Option: C

that glitters is not gold



Your comments will be displayed only after manual approval.