Practice · 1 of 2
Parse Name and Age
CHALLENGE
Difficulty: beginner+25 XP
Implement int parse_person(const char* line, char* name, int* age): parse <name> <age> from the line. Store the name (max 31 chars + terminator) and age through the out-parameters. Return 1 if both fields were read, 0 otherwise.
Press Submit to check your solution.
Back to lesson: Practice: Parse the Line