Practice ยท 2 of 3
Load and Sum
Implement int load_sum(const char *path): read integers (one per line, fscanf "%d") until reading fails, returning their sum; missing file returns -1.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Persistence Layer