Skip to main content

Practice · 1 of 2

Dereference and sum

CHALLENGE
Difficulty: intermediate+25 XP

Implement int sum_through(const int* a, const int* b) returning *a + *b. Either pointer may be null; treat a null as 0.

Back to lesson: Practice: Pointers and the null contract