Home » Electronics and Communication Engineering » Microprocessors

Consider the following program in Pascal X = 2.57 X = (X + 0.06) * 10 I = TRUNC (X) X = I X = X / 10.0 The final value of X would be

Correct Answer: 2.6

Explanation:

(2.57 + 0.06) 10 = 26.3 → .

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion