aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C Language
  • Find the output of the above program or error, if any. #i...
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.

Keep practicing — related questions

  • Find out the output of the given program or find the error if any. #include<stdio.h> #include<conio.h> int ...
  • Find the output of the above program or error, if any. #include<stdio.h> #include<conio.h> int num(int); in...
  • Find out the output of the given program or error (if any). #include<stdio.h> #include<conio.h> int main() ...
  • Find the output of the program or error, if any. #include<stdio.h> #include<conio.h> #include<math.h> int m...
  • #include<stdio.h> #include<conio.h> int main() { int a=9,b=10,c; c=(b<a || b>a); printf(c=%d,c); getch(); }...
  • What would be the output of the following program? #include<iostream> #include<conio.h> int main() { int n=...
  • Find out the output of the following program or error (if any). #include<stdio.h>#include<conio.h>int main(...
  • Which of the following options shows the output or error of the above program? #include<stdio.h> #include<c...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy