πŸ“Š C#
Q. What will be the output of the following C# code?
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
  • (D) 15, 11
πŸ’¬ Discuss
βœ… Correct Answer: (C) -6, 11

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
261
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Shivam
Publisher
πŸ“ˆ
98%
Success Rate