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