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
Answer: Option C
Was this answer helpful ?
j starts with the value 10. j is then incremented to 11. Next, j is added to 100. Finally, j (still containing 11) is added to 999 which yields the result 1010.
Was this answer helpful ?
More Questions on This Topic :
Question 5. How many types of loops are there? ....
Question 6. The switch statement is also called as? ....
Submit Solution