aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Masters of Computer Application (C++)
  • What is the output of the following program? #include voi...
Multiple choice

What is the output of the following program? #include void main() { enum birds{parrot,crow,pigeon,sparrow}; birds b=pigeon; cout< }

  1. pigeon

  2. 3

  3. 2

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • What will be the output for the following? enum color{pink,yellow,blue,black}; #include<iostream.h> void ma...
  • What is the output of the following program? void main(); { int a=5,b=5; cout<<a++; cout<< -> ; cout<<++a; ...
  • What is the output of the following program?#include void main() { int x=7,y=6,z; z=x-- -y; cout< }
  • What is the output of the following program? #include<iostream.h> void x(int a,int &b) { a=a+b; a=a-b; b=b-...
  • What will be the output of the given program? #include<iostream.h> void main ( ) { int a=5; cout<< ++a; }
  • What will be the output of the under given program? #include<iosteam.h> void main() { int k; cout<<”k=”<<k; }
  • What will be the output of the following program?void main() { int p,q,r; p=10; q=20; r=30; if ((p>10)||(q<...
  • Output ??? enum {false,true}; int main() { int i=1; do { printf("%d\n",i); i++; if(i < 15) continue; }while...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy