Counting Memory

We tend to count memory using hexadecimal rather than binary.

Example: Storing an Int

#include <stdio.h>
int main(void)
{
    int n = 50;
    printf("%i\n", n);
}
  1. An int typically takes 4 bytes
  2. The number 50 has an address for where it is in memory, like 0x123