Vidyalelo
C# Programming · Q65

Control Flow Statements in C Sharp

Programming · C# Programming · question 65

Q65

What will be the output of the following C# code? static void Main(string[] args) int a = 5, b = 10; if (Convert.ToBoolean(Convert.ToInt32(++a)) || Convert.ToBoolean(Convert.ToInt32(++b))) Console.WriteLine(a + " " + b); else Console.WriteLine(" C# ");

A.
6 11
B.
6 16
C.
6 12
D.
6 10
Answer

Answer: Option D

Solution

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