Microprocessors - Engineering

Q1:

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 =

A 1

B - 1

C + 1.15

D - 1.15

ANS:B - - 1

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