int *p = (int*)malloc(sizeof(int)*1);
p[0]=2;
p[1]=3;
In windows OS , in visual studio I am executing above code.
I allocated memory for only one item but I am able to assign value to second item? How it is possible? How to restrict it?
I am not getting any compiler error.