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 z=-1; cout<<z+5<< , <<z+3<< , <<z; }

    • 5, - 2, - 2
    • 5, - 7, - 1
  1. 15, 18, 18

    • 15, - 18, - 18
Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • 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? void main(); { int a=5,b=5; cout<<a++; cout<< -> ; cout<<++a; ...
  • What would be the output of the following? void main() { int z,x=5,y=-10,a=4,b=2; z=x++ - --y *b/a; printf(...
  • 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[]={5,6,7,8,9,10}; int *p; p=z; cout<<*p+1; }
  • What will be the output of the following program? void main() { int z[]={5,6,7,8,9,10}; int *p; p=z; 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 is the output of the following program
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy