Vidyalelo
C# Programming · Q191

Classes and Objects in C Sharp

Programming · C# Programming · question 191

Q191

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

A.
HI HI HI
B.
HI
C.
Stack overflow exception
Answer
D.
Compile time error

Answer: Option C

Solution

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