OA. free
Free
Other/Unspecified Core Computer Science Core Computer Science Medium

What will be the output of the following C code?

Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.

What will be the output of the following C code?

#include <stdio.h>

int main()
{
    if (7 & 8)
        printf("google.com");
    if ((~7 & 0x000f) == 8)
        printf("bing.com");
    return 0;
}
Choose one option.
Show answer & explanation
Answer: A. bing.com

Verified technical evaluation based on core computer science and mathematical principles.

Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.