#include<stdio.h>
int main()
{
int a[100], i=0;
while(1)
{
a[i++]=5;
printf("%d\n",i);
}
return 0;
}
on gcc this code doesn't give ny error. but after printing the value of i upto 100 , it restart writing value of i from 6 onward...
my question is how value of i is changing after reaching 100..
plz help