Microprocessors - Engineering

Q1:

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

A 5 / 2

B 4.0 / 2

C 4.0 / 2.0

D 4 / 2.0

ANS:A - 5 / 2

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