Home / C# Programming / Datatypes :: Discussion

Discussion :: Datatypes

  1. What will be the output of the following code snippet when it is executed?

        int x = 1;   
        float y = 1.1f; 
        short z = 1;    
        Console.WriteLine((float) x + y * z - (x += (short) y));
    
    

     

  2. A.

    0.1

    B.

    1.0

    C.

    1.1

    D.

    11

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment