Practice · 2 of 4
Zeroed Buffer
CHALLENGE
Difficulty: beginner+25 XP
Implement int* zero_buffer(int n): heap array of n ints where EVERY element is 0 (n >= 1 guaranteed). Return NULL if allocation fails.
Press Submit to check your solution.
Back to lesson: Practice: Allocation Workbench