Vidyalelo
C# Programming · Q70

Operators and Expressions in C Sharp

Programming · C# Programming · question 70

Q70

What will be the output of the following C# code? int i, j = 1, k; for (i = 0; i < 3; i++) k = j++ - ++j; Console.Write(k + " ");

A.
-4 -3 -2
B.
-6 -4 -1
C.
-2 -2 -2
Answer
D.
-4 -4 -4

Answer: Option C

Solution

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