What will be the output of the following C# code? [code] static void Main(string[] args) { float a = 10.553f; long b = 12L;

Mỹ Duyên

New member
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.
Code:
23
.453
B. 22
C.
Code:
23
D. 22.453
 

Tìm kiếm

Back
Top