M

Mr. Dubey • 52.08K Points
Coach

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

Code:
static void Main(string[] args)
 {
     float a = 10.553f;
     long b = 12L;
     int  c;
     c = Convert.ToInt32(a + b);
     Console.WriteLine(c);
 }
  • (A) 23.453
  • (B) 22
  • (C) 23
  • (D) 22.453

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.