Vidyalelo
C# Programming · Q64

Control Flow Statements in C Sharp

Programming · C# Programming · question 64

Q64

What will be the output of the following C# code? static void Main(string[] args) int i = 1; while (i <= 1) if ('A' < 'a') Console.WriteLine("Hello..."); else Console.WriteLine("Hi..."); i++; Console.ReadLine();

A.
Hi...
B.
Hello...
Answer
C.
Hi... infinite times
D.
Hello... infinite times

Answer: Option B

Solution

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