Memory is stored in two ways, the Heap and Stack. Heap The heap is where variables are stored. Stack The stack is where function calls are tracked.