I was told this is true (in the pearson book How to Program), however when compiling inside the ide of NetBeans,
the following function code
int n[5] = {6, 5, 4, 3, 2, 1, 2, 3, 2};
does not result in a compile time error however does cause unexpected behavior further in the program. Accessing locations in the array that shouldn't exist also does not cause a syntax error.
printf("%d", n[7]);
Am I missing something?