#include<stdio.h>
int main()
{
int arr[2]={10,9};
printf("%d\n",4[arr]);
return 0;
}
this is giving output 1,shoudn`t it give segmentation fault cause the array is of size 2 and we are printing the value of array cell with index 4.Plz reply asap.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.