Home » C# Programming » Operators

What will be the output of the C#.NET code snippet given below? int num = 1, z = 5; if (!(num <= 0)) Console.WriteLine( ++num + z++ + " " + ++z ); else Console.WriteLine( --num + z-- + " " + --z );

Correct Answer: 7 7

← Previous Question Next Question→

More Questions from Operators

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion