A

Admin • 828.03K Points
Coach

Q. What will be the output of the following code?

Code:
int x = 10;
Console.WriteLine(x++);
  • (A) 9
  • (B) 10
  • (C) 11
  • (D) Compilation error

Explanation by: Admin
Post-increment prints the value first and then increments it.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.