Which programming language is this?
FILE *fp = fopen("scores.txt", "r");
int score, total = 0;
while (fscanf(fp, "%d", &score) == 1)
total += score;
fclose(fp);
Answer: C
A
Play Programming Languages ▸
FILE * handle read with fscanf and closed with fclose is C stdio file handling.