I am trying to print the value of globally declared array variable with the index out of boundary and getting 0 always.
I know already that C will not check the boundary values. But not sure whether this variable will be part of initialised data segment or BSS.
const int arr[] = {1,2,3,4};
int main()
{
printf("%d", arr[3840570000]);
}
Getting 0 as output.