R

Ram Sharma • 193.88K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 140
  • Filed under category C++

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.


Question analytics