Single Choice Not Set

QWhat will be the output of the program?

#include<stdio.h>

int main()
{
    int i=4, j=8;
    printf("%d, %d, %d\n", i|j&j|i, i|j&&j|i, i^j);
    return 0;
}

ID: #1194 Operators and Enums in C Language 1,785 views
Question Info
#1194Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

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

  • A 4, 8, 0
  • B 1, 2, 1
  • C 12, 1, 12
  • D 0, 0, 0
Correct Answer

Explanation

12, 1, 12

Share This Question

Challenge a friend or share with your study group.