Vidyalelo
C# Programming · Q237

Classes and Objects in C Sharp

Programming · C# Programming · question 237

Q237

What will be the output of the following C# code? public static void Main(string[] args) p(); void p() Console.WriteLine("hi");

A.
Compile time error
Answer
B.
hi
C.
hi infinite times
D.
None of the mentioned

Answer: Option A

Solution

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