Vidyalelo
C# Programming · Q60

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 60

Q60

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
Answer
D.
22.453

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board