It's UWAweek 44 (2nd semester, 1st exam week)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 820 articles.
Currently 5 other people reading this forum.


 UWA week 43 (2nd semester, study break) ↓
SVG not supported

Login to reply

👍?
helpful
10:14pm Thu 24th Oct, ANONYMOUS

The stack is "built up" in a sense, so new items are added on top of the stack. When a function returns, the stack essentially (theres a bit more to it if you want to do some research) gets rid of everything that was added on top during the functioncall's time Which is why yes, depending on how long the function lasted for, the point that we return back down to in the stack might not be super close to the things we were accessing during the function call. So I suppose I'm referring to the data in the stack (that we are getting) and it's location (in that related data will typically be close together!), and yes you are correct that a function call could make you go back to something further away.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy