References
References
- They solve some problems with raw pointers
- Once initialized, a reference cannot be changed. This makes them less dangerous.
- Instead of "pointing" to an address, a reference only "refers" to a fixed address / variable
1 2 3 4 |
|
1 2 3 4 |
|
1 2 |
|
1 2 |
|
1 2 |
|
1 2 |
|
1 2 |
|
1 2 |
|