Home / ECE / Microprocessors :: Discussion

Discussion :: Microprocessors

  1. Consider the following program in C

    int k;
    float a, b, c;
    k = a* b* c / 100 + 2.5 / 2 - 0.3 * 9


    if a - 5.0, b = 2.0 and c = 3.0 the final result k =

  2. A.
    1
    B.
    - 1
    C.
    + 1.15
    D.
    - 1.15

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    k = 0 + 1 - 2 = - 1 because k is an integer.


Be The First To Comment