R

Ram Sharma • 3.40K Points
Extraordinary

Q. What is the output of Console.WriteLine("Hello" + 2 + 2);?

  • (A) Hello22
  • (B) Hello4
  • (C) 4Hello
  • (D) Error

Explanation by: Ram Sharma
The `+` operator performs string concatenation left to right, so it becomes "Hello22".

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.