M
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);
}
{
float a = 10.553f;
long b = 12L;
int c;
c = Convert.ToInt32(a + b);
Console.WriteLine(c);
}
- Correct Answer - Option(C)
- Views: 192
- Filed under category C#
Discusssion
Login to discuss.