Vidyalelo
C# Programming · Q47

Control Flow Statements in C Sharp

Programming · C# Programming · question 47

Q47

What will be the output of the following C# code? int i; Console.WriteLine("Hi"); for (i = 1; i <= 10; i++) Program.Main(args); Console.ReadLine();

A.
Prints 'Hi' for one time
B.
Prints 'Hi' for infinite times
C.
Stack overflow exception Condition generated
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