Code Room
Code reviewMediumcr-g387
Subject Buffer overflowLevel Mid–Senior~16 minCommon in Algorithms & data structures interviewsIndustries Software development, Telecom

Question

Review this C config-line reader.

What a strong answer looks like

Separate real bugs from style. Rank issues by severity, point at the root cause rather than the symptom, and suggest a concrete fix — specific and kind.

Talk through your review
Code to reviewc
void read_key(FILE *f) {    char key[32];    fscanf(f, "%s", key);   // read a whitespace-delimited token    register_key(key);}
Run or narrate your approach, then ask the coach.