Practice · 1 of 3
Guarded Read
CHALLENGE
Difficulty: beginner+25 XP
Implement int safe_get(const int *p, int fallback): return *p if p is not NULL, otherwise return fallback WITHOUT dereferencing.
Press Submit to check your solution.
Back to lesson: Practice: NULL Guard Duty