Vidyalelo
C# Programming · Q76

Basic Syntax and Data Types in C Sharp

Programming · C# Programming · question 76

Q76

What will be the output of the following C# code? static void Main(string[] args) int a = 5; int b = 10; int c; Console.WriteLine(c = a-- - ++b); Console.WriteLine(b); Console.ReadLine();

A.
-7, 10
B.
-5, 11
C.
-6, 11
Answer
D.
15, 11

Answer: Option C

Solution

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