adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #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: (c).1010

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?