Trang Esther
New member
What will be the output of the following C# code?
A.
35.78
10
B.
10
35.00
C.
10
35.78
D. None of the mentioned
Code:
static void Main(string[] args)
{
int i = 10;
double d = 35.78;
fun(i);
fun(d);
Console.ReadLine();
}
static void fun(double d)
{
Console.WriteLine(d);
}
35.78
10
B.
10
35.00
C.
10
35.78
D. None of the mentioned