MCQ Single Best Answer Not Set

QWhat will be the output of the following 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: #2682 Overview Of C Language 1,586 views
Question Info
#2682Q ID
Not SetDifficulty
Overview Of C LanguageTopic

Choose the Best Option

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

  • A 12, 12, 12
  • B 112, 1, 12
  • C 32, 1, 12
  • D -64, 1, 12
Correct Answer: Option A

Explanation

12, 12, 12

Share This Question

Challenge a friend or share with your study group.