Vidyalelo
C# Programming · Q31

Control Flow Statements in C Sharp

Programming · C# Programming · question 31

Q31

What will be the output of the following C# code? static void Main(string[] args) int x; for (x = 10; x > 1)) continue; while (Convert.ToBoolean(0)); break; Console.ReadLine();

A.
0 0 0....infinite times
B.
1 1 1....infinite times
C.
1 1 1 1 1 1
Answer
D.
System outofflow exception error

Answer: Option C

Solution

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