Page 1 of 1

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

Posted: Wed Jul 13, 2022 7:56 pm
by answerhappygod
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