Tuesday, 3 September 2013

Pointers on C, need simple verification

Pointers on C, need simple verification

Question is part of Reek's earlier mentioned handbook. I got variables:
h under 1080 address with value 1020
i under 1020 address with value 1080.
Evaluate L-value and R-value of an expression **h, when treating h and i
as pointers to integers. My answer is R:1020 L:1080, but Instructor's
guide says: R:1080, L:1020. Who right and who's wrong?

No comments:

Post a Comment