While playing around with arrays, and experimented with this program:
#include <stdio.h>
int main ( void )
{
int a[] = {};
printf ( "%d\n", sizeof(a) );
printf ( "%d\n", a[0] );
printf ( "%d\n", a[1] );
printf ( "%d\n", a[10] );
printf ( "%d\n", a[100] );
}
And somehow, it compiled successfully without errors got this result:
0
-1216614400
134513834
-1080435356
-1080430834
How come I am able to access an empty array at any index that should have no size?