MCQs > IT & Programming > C++ > Output of following program? #include using namespace std; int main() { int i, j; j = 0; i = (j++, j + 1, 2 + j); cout << i; return 0; }

C++ MCQs

What is the output of following program? #include <iostream> using namespace std; int main() { int i, j; j = 0; i = (j++, j + 1, 2 + j); cout << i; return 0; }

Answer

Correct Answer: 3

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it