Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 3 (Q.No. 26)
26.
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 =
1
- 1
+ 1.15
- 1.15
Answer: Option
Explanation:

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

Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.