< Previous | Contents | Next >

Discussion Questions

1. What are the advantages and disadvantages of passing an argument by value?

2. What are the advantages and disadvantages of passing a reference?

3. What are the advantages and disadvantages of passing a constant reference?

Exercises 221


4. What are the advantages and disadvantages of returning a reference?

5. Should game AI cheat in order to create a more worthy opponent?