Table of contents
Out-of-bounds infinite loop code:
Out-of-bounds infinite loop code:
#include <stdio.h>
int main()
{
int i = 0;
int arr[] = { 1,2,3,4,5,6,7,8,9,10 };
for (i = 0; i <= 12; i++)
{
arr[i] = 0;
printf("hello bit\n");
}
return 0;
}
result:
Cause Analysis: