Home / Programming MCQs / C++ MCQs / Question

Q. What is the output of the following C++ code?

Code:
#include <iostream>
using namespace std;
int main()
{
  int i, j;
  i = 1;
  j = (i++, i + 10, 9 + i);
  cout << j;
  return 0;
}
(A) 11
(B) 20
(C) 2
(D) 10

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.