79192511

Date: 2024-11-15 13:15:26
Score: 2
Natty:
Report link

Because you do not check for:

fgets(string, 256, fp) != NULL

You do not write something in your variable anymore but you did not reach EOF so you continue to print the last known value of string.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 1rt3ng0