B

Brijesh Goswami • 9.45K Points
Tutor III

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
  • Correct Answer - Option(C)
  • Views: 275
  • Filed under category C++

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics