Google News
logo
Electronics and Communication Engineering (ECE) : Microprocessors - Quiz(MCQ)
Which of the following operations will give the result 2 in C?
A)
4.0 / 2
B)
5 / 2
C)
4 / 2.0
D)
4.0 / 2.0

Correct Answer : Option (B) :   5 / 2


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

Advertisement