Home / C# Programming / Operators :: Discussion

Discussion :: Operators

  1. 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 ); 
    
    

  2. A.

    5 6

    B.

    6 5

    C.

    6 6

    D.

    7 7

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment