Reminder: Computer memory … large array of consecutive data cells or bytes
- 1 byte = 8 bits =
0x00 … 0xFF
char … 1 byte int,float … 4 bytes double … 8 bytes
Memory addresses shown in Hexadecimal notation
When a variable is declared, the operating system finds a place in
memory to store the appropriate number of bytes.
If we declare a variable called k …
- the place where
k is stored is denoted by &k
- also called the address of k
|
|