Why am I not getting a segmentation fault or at least weird results with this array out of bounds? I'm a bit disappointed. One of the few times I actually want it to happen it won't happen.
int i = 0;
int j = 0;
int n = 0;
int a[50];
int frame_page[6];
int no = 0;
int k = 0;
int page_avl = 0;
int cont = 0;
printf("\n enter number\n");
scanf("%d",&n);
printf("\n enter number1 :\n");
for(i=1;i<=n;i++)
scanf("%d",&a[i]);
printf("\n enter number2 :");
scanf("%d",&no);
for(i=0;i<no;i++)
frame_page[i]= -1;