M

Mr. Dubey • 97.30K 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
  • Correct Answer - Option(C)
  • Views: 192
  • 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