πŸ“Š C++
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 11

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
172
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
83%
Success Rate