Examveda

What will be the output of the following C# 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

Answer: Option C


Join The Discussion

Related Questions on Basic Syntax and Data Types in C Sharp