Hi all, what exactly is segmentation fault or access violation and exactly when does it occur?
Why does the following program work correctly :
#include <stdio.h>
#include <conio.h>
int main( )
{
int a[5];
a[20] = 20;
a[-20] = 30;
printf("%d %d", a[20], a[-20] );
getch( );
return 0;
}