The program below has a bug. Which statement correctly describes it?
#include <stdio.h>
int main(void) {
total = 10;
int total;
printf("%d\n", total);
return 0;
}
Scope begins at the end of the declarator, so the first line refers to an undeclared name. Declare (and initialise) before use: int total = 10;.