A few more Data Types
- A Union is a structure where multiple types of data can be stored in the same location.
- These are important for activities like system level programming where space is tight.
- They are highly error prone.
- So we will not consider them any further.
- A Pointer is a data type used to hold the address of a block of memory.
- These will be very important when we get to dynamic memory.
- But not until then.
- Except when we discuss arrays, we will talk about pass by pointer for variables.
- A Reference is a data type that Stroustrup added
- This allows pass by reference
- More on this in 330.