2
Reply

What will be result of the following C# program

Sourabh Somani

Sourabh Somani

Jun 29, 2019
703
0
  1. using System;
  2. public class X
  3. {
  4. public static void Main()
  5. {
  6. int i=0;
  7. i=i++ + i++;
  8. i++;
  9. ++i;
  10. Console.WriteLine(i);
  11. }
  12. }

Also explain how you solved?