Debug why the below mentioned code goes into an infinite loop
int a[10];
int i;
for(i=0;i<=10;i++) {
a[i]=0;
}
i am not able to find any valid explanation for it. Although one possibility is a[9] pointing back to i ... but it doesn't seem convincing