Linked lists, dynamic memory, binary trees, situations where you need to be able to point to a different variable/address, etc.
Type: Posts; User: Elysia
Linked lists, dynamic memory, binary trees, situations where you need to be able to point to a different variable/address, etc.
They still have their uses--especially where references cannot be used!
A pointer can be used in two ways.
You can assign it a memory address (ie change where it points to). This is fine. You don't need to initialize it to do this.
You can also reference it, which...