Skip to main content

Access Patterns

Challenge on lesson: Checkpoint: References and Pointers

CHALLENGE
Difficulty: beginner+25 XP

Implement bigger_of(const int* a, const int* b) returning the pointed-to value that is larger, or 0 when either pointer is null; and swap_through(int& a, int& b) swapping through references.

Back to lesson: Checkpoint: References and Pointers