Vidyalelo
C# Programming · Q61

Classes and Objects in C Sharp

Programming · C# Programming · question 61

Q61

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

A.
35.78
10
B.
10
35
C.
10
35.78
Answer
D.
None of the mentioned

Answer: Option C

Solution

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