Vidyalelo
C# Programming · Q55

Control Flow Statements in C Sharp

Programming · C# Programming · question 55

Q55

What will be the output of the following C# code? static void Main(string[] args) int i = 1, j = 2, k = 3; do Console.WriteLine((Convert.ToBoolean(Convert.ToInt32(i++))) && (Convert.ToBoolean(Convert.ToInt32(++j)))); while (i <= 3); Console.ReadLine();

A.
0 0 0
B.
True True True
Answer
C.
1 1 1
D.
False False False

Answer: Option B

Solution

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