What will be the output of the C#.NET code snippet given below?

Loading

โœช Choose the correct option.

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 );
}

A. 44718
B. 44749
C. 44717
D. 44686

Leave a Comment