Home / C# Programming / Datatypes :: Discussion

Discussion :: Datatypes

  1. Which of the following statement correctly assigns a value 33 to a variable c?

    byte a = 11, b = 22, c;

  2. A.
    c = (byte) (a + b);
    B.
    c = (byte) a + (byte) b;
    C.
    c = (int) a + (int) b;
    D.
    c = (int)(a + b);
    E.
    c = a + b;

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment