Examveda

What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
    int i, j;
    j = 10;
    i = (j++, j + 100, 999 + j);
    cout << i;
    return 0;
}

A. 1000

B. 11

C. 1010

D. 1001

Answer: Option C


Join The Discussion

Related Questions on Operators and Expressions in C plus plus