Vidyalelo
C# Programming · Q85

Control Flow Statements in C Sharp

Programming · C# Programming · question 85

Q85

What will be the output of the following C# code? static void Main(string[] args) int i, j; for (i = 1, j = i; i = 0; i++, j--) if (i == j) continue; else Console.WriteLine(j); Console.ReadLine();

A.
i = 0, j = 1;
B.
i = 1, j = 0;
C.
j = 0;
Answer
D.
None of the mentioned

Answer: Option C

Solution

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