Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 4 (Q.No. 23)
23.
Let JCOKE = 20 and LPEPSI =15. Consider the statement

IF(2* JCOKE. LE. LPEPSI)
JCOKE = JCOKE + 5
JCOKE = JCOKE + 3

The value of JCOKE after the execution of above statement will be
25
23
15
17
Answer: Option
Explanation:

Since 2 x J COKE = 40 and (LPEPSI) is 15 control goes to statement J COKE = J COKE + 3 and result is 23.

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

Post your comments here:

Your comments will be displayed after verification.