Electronics and Communication Engineering - Microprocessors - Discussion

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

[A]. 25
[B]. 23
[C]. 15
[D]. 17

Answer: Option B

Explanation:

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


Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.