求助,帮我解释程序
#include <stdio.h>int main()
{
int ratingCounters[11], i, response;
for(i = 1; i <= 10; i++)
ratingCounters[i] = 0;
printf("Enter your responses\n");
for(i = 1; i <= 20; i++) {
scanf("%i", &response);
if(response < 1 || response > 10)
printf("Bad response:%d\n", response);
else
++ratingCounters[response];//不懂
printf("%d\n", ratingCounters[response]);
}
for(i = 1; i <= 10; i++)
printf("%5d%5d\n", i, ratingCounters[i]);
return 0;
}