Q. Find the output of the following program.
Code:main(){
int a = 10, b, c;
b = a++;
c = a;
cout << a << “ “ <<b <<” “<< c << endl;
}
β
Correct Answer: (C)
11 10 11
main(){
int a = 10, b, c;
b = a++;
c = a;
cout << a << “ “ <<b <<” “<< c << endl;
}
You must be Logged in to update hint/solution