August 2001
Beginner
482 pages
10h 52m
English
| Q1: | Why use references if pointers can do everything references can? |
| A1: | References are easier to use and understand. The indirection is hidden, and there is no need to repeatedly dereference the variable. |
| Q2: | Why use pointers if references are easier? |
| A2: | References cannot be null, and they cannot be reassigned. Pointers offer greater flexibility, but are slightly more difficult to use. |
Read now
Unlock full access