Practice · 1 of 3
Save Scores
CHALLENGE
Difficulty: beginner+25 XP
Implement int save_scores(const char *path, const int *scores, int n): write one integer per line (fprintf "%d\n") and return n. Open failure returns -1.
Press Submit to check your solution.
Back to lesson: Practice: Persistence Layer