Vidyalelo
C# Programming · Q61

Control Flow Statements in C Sharp

Programming · C# Programming · question 61

Q61

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

A.
-127 to +127
B.
0 to 127
C.
1
Answer
D.
Infinite loop condition

Answer: Option C

Solution

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