Multiple choice

Find the output of the above program or error, if any.

#include<stdio.h>

#include<conio.h>

int main()

{

int a=4,b=8,c;

c=a | b;

printf(“the result is C=%d”,c);

getch();

}

  1. C = 0

  2. C = 32

  3. C = 12

  4. C = 8

  5. Error in the program

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The correct answer is 12.