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.
Press Submit to check your solution.
Back to lesson: Checkpoint: References and Pointers