Question

Consider the following arithmetic operations in C: int X-20; int Y-20; int Z-2*(X+Y) which assembly code(0x86) does not evalu

read carefully Which DOES NOT evaluate.

1 3
Add a comment Improve this question Transcribed image text
Answer #1

Note :- Question is the option which doesn't evaluate Z correctly then the answer is A
But, if you see which option doesn't evaluate Z then the Answer is C

c) Operation :-

It calculates the value . But, never stores the value in Z.

a) Operation :-

It evaluates the value of Z in-correctly.As, it never considers the value of X and without any check it adds the value of ebx i.e Y to eax .

Add a comment
Know the answer?
Add Answer to:
read carefully Which DOES NOT evaluate. Consider the following arithmetic operations in C: int X-20; int Y-20; int Z-2*(X+Y) which assembly code(0x86) does not evaluate value for Z correctly? mov...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT