Home / MCQ Bank / Computer
Computer Classes And Objects In C Plus Plus

What will be the output of the following C++ code? #include <stdio.h> #include<iostream> using namespace std; int main() { int num1 = 5; int num2 = 3; int num3 = 2; num1 = num2++; num2 = --num3; cout << num1 << num2 << num3; return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • 311

Related Computer Questions

Which keyword inserted in the SHOW STATUS statement shows the values for the current connection? A grid is not supported by ______ What will be the output of the following C++ code? #include <iostream> using namespace std; struct sec { int a; char b; }; int main() { struct sec s ={25,50}; struct sec *ps =(struct sec *)&s; cout << ps->a << ps->b; return 0; } BCC stands for __________? How does the YSlow for Mobile work as?