[prev] 12 [next]

Memory

Computer memory … large array of consecutive data cells or bytes
  • char … 1 byte    int,float … 4 bytes    double … 8 bytes
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
It is convenient to print memory addresses in Hexadecimal notation

[Diagram:Pic/memoryAddresses.png]