aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Masters of Computer Applications (C++)
  • What is the output of the following program? void main();...
Multiple choice

What is the output of the following program? void main(); { int a=5,b=5; cout<<a++; cout<< -> ; cout<<++a; cout<< -> ; cout<<b++; }

  1. 5->7->6

  2. 6->7->5

  3. 5->7->5

  4. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer

Keep practicing — related questions

  • 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 is the output of the following program?#include void main() { int x=7,y=6,z; z=x-- -y; cout< }
  • What will be the output of the given program? #include<iostream.h> void main ( ) { int a=5; cout<< ++a; }
  • What is the output of the following program? #include<iostream.h> void fun(int &a,int &b) { a=a*b; b=b-a; a...
  • What is the output of the following program? void main() { int z=-1; cout<<z+5<< , <<z+3<< , <<z; }
  • What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<
  • What would be the output of the following? void main() { int a=10,b; b=a++ + ++a; printf("%d %d %d %d",b,a+...
  • What is the output of the following program? void main() { int z[]={5,6,7,8,9,10}; int *p; p=z; cout<<*p+1; }
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy