Vidyalelo
C# Programming · Q58

Control Flow Statements in C Sharp

Programming · C# Programming · question 58

Q58

What will be the output of the following C# code? static void Main(string[] args) int x = 10; do Console.WriteLine( x++); while(Convert.ToBoolean(5) && Convert.ToBoolean(4) && Convert.ToBoolean(3) && Convert.ToBoolean(2) && Convert.ToBoolean(1) && Convert.ToBoolean(0)); Console.ReadLine();

A.
13
B.
15
C.
11
D.
10
Answer

Answer: Option D

Solution

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