The following program compiles (using MS Visual Studio 2010) with no errors or warnings and runs without any error, why? Thanks in advance for explanation.
#include <stdio.h>
int f[3] = { 1,2,3 };
int g[4] = { 12,45,55,65 };
int main(int argc, char *argv[])
{
printf("%d\n", f[5]);
return 0;
}
No reply is needed. I have resolved it.