Hello Friends !!
I am unable to know why there is no runtime error or segmentation error (in Linux) when i run the following code :
Code:
#include <stdio.h>
int x = 'A';
int main()
{
int *wild;
int next;
wild = &x;
next = *(++wild);
printf("\n next = %d",next);
printf("\n\n");
return 0;
}
output = 0. (on Linux)
even though i make the pointer wild to point to an unknown location
through wild++, i don't get any runtime error or segmentation error
(when we try to access an unknown location on Linux). Why ?? Can someone make me clear ?
Regards