Vidyalelo
C# Programming · Q125

Classes and Objects in C Sharp

Programming · C# Programming · question 125

Q125

What will be the output of the following C# code? static void Main(string[] args) int y = 3; y++; if (y <= 5) Console.WriteLine("hi"); Main(args); Console.ReadLine();

A.
hi hi
B.
hi
C.
Stack overflow exception
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