Vidyalelo
C# Programming · Q75

Control Flow Statements in C Sharp

Programming · C# Programming · question 75

Q75

What will be the output of the following C# code? static void Main(string[] args) int i = 0, j = 0; while (i < 2) l1: i--; while (j < 2) Console.WriteLine("hi "); goto l1; Console.ReadLine();

A.
hi hi hi
B.
hi hi
C.
hi
D.
hi hi hi..... infinite times
Answer

Answer: Option D

Solution

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