Vidyalelo
C# Programming · Q70

Control Flow Statements in C Sharp

Programming · C# Programming · question 70

Q70

What will be the output of the following C# code? static void Main(string[] args) int i; for (i = 0; ; ) Console.WriteLine("hello"); Console.ReadLine();

A.
No output
B.
hello
C.
hello printed infinite times
Answer
D.
Code will give error as expression syntax

Answer: Option C

Solution

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