IFD:EAI SoS21/course material/Session 3: File Structuring, Pointers and Addresses: Difference between revisions

From Medien Wiki
Line 22: Line 22:
==Pointers and Addresses==
==Pointers and Addresses==


[https://replit.com/@abnutzer/PointersAndAdresses Code Example for Pointers and Addresses]
 


Until now, we were only using variables in a very local space in the main memory, called the stack.  
Until now, we were only using variables in a very local space in the main memory, called the stack.  
Line 40: Line 40:
Note that p2 resides in the memory, when we do not delete it explicitly. Usually until you restart your computer!  
Note that p2 resides in the memory, when we do not delete it explicitly. Usually until you restart your computer!  


[https://replit.com/@abnutzer/PointersAndAdresses Code Example for Pointers and Addresses]
[[File:pointers_addresses1.png|800px]]
[[File:pointers_addresses1.png|800px]]