Home / ECE / Microprocessors :: Discussion

Discussion :: Microprocessors

  1. Which of the following operations will give the result 2 in C?

  2. A.
    5 / 2
    B.
    4.0 / 2
    C.
    4.0 / 2.0
    D.
    4 / 2.0

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Since both 5 and 2 are integers, the result will be 2.


Be The First To Comment