Home / C# Programming / Operators :: Discussion

Discussion :: Operators

  1. Which of the following are the correct ways to increment the value of variable a by 1?

    1. ++a++;
    2. a += 1;
    3. a ++ 1;
    4. a = a +1;
    5. a = +1;

  2. A.
    1, 3
    B.
    2, 4
    C.
    3, 5
    D.
    4, 5
    E.
    None of these

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment