M

Mr. Dubey • 86.20K Points
Coach

Q. What is the output of the folloeing code?
#include <iostream>
using namespace std;
int main()
{
int a = 10, b = 20;
a = a++;
b = ++b;
cout << a << b;
return 0;
}

(A) 2.2
(B) 2
(C) 2
(D) conversion from double to int is not possible
Share

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics