Practice ยท 1 of 2
Parse Name and Age
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.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Parse the Line