Given the below data in the file:
Jim: 100.00 Amed
John: 200.00
if (line[len] != '\0') {
printf("extra characters: %s\n", line + len);
}
the first invalid line will be:
Jim: 100.00 Amed
and the len 12 and the output will be:
extra characters: Amed
How does line + len
give:
Amed