
Memory on computers are a structured, ordered system. A spreadsheet is a wonderful way to represent it; if you look at the diagram, you see two aspects. One is the Address of the memory and the other is the contents of the memory. In general the memory is a certain uniform size: 8 bites. Things like characters can fit in a single address. Others, like Long Integers, have to fit in two memory addresses.
Arrays and pointers are addresses that contain addresses to other areas. This allows you to write programs dynamically instead of having to have set memory sets.
One array living at 0x0002 can possibly point to an array over in 0x0016 (this is a simplified view; its more complicated than that, but dont worry about it). The array starts at 0x0016 and keeps going until 0x0022.
No comments:
Post a Comment