M

Mr. Dubey • 87.94K Points
Coach

Q. What will be the output of the following code snippet when it is executed?
int x = 1;
float y = 1.1f;
short z = 1;
Console.Write.Line((float) x + y * z - (x += (short) y));

  • (A) 0.1
  • (B) 1.0
  • (C) 1.1
  • (D) 11
  • Correct Answer - Option(A)
  • Views: 97
  • 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