Q. Find the output of the following program.

Code:
main(){
  int a = 10, b, c;
  b  = a++;
  c = a;
  cout << a << “ “ <<b <<” “<< c << endl;
}
  • (A) 10 11 11
  • (B) 11 11 11
  • (C) 11 10 11
  • (D) 10 10 10
πŸ’¬ Discuss
βœ… Correct Answer: (C) 11 10 11

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
388
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Brijesh Goswami
Publisher
πŸ“ˆ
95%
Success Rate