Practice ยท 3 of 3
Bounds-checked Get
Implement int da_get(const DArray *a, int i, int fallback): return data[i] when 0 <= i < size, else fallback (never out of bounds).
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Dynamic Array Build