When I run the above program in gcc complier (www.codepad.org), I get the output as a Forbidden system call: SYS_socketcall Can anyone understand why this error / exit is coming?
int main() {
int i=8;
int *p=&i;
printf("\n%d",*p);
*++p=2;
printf("\n%d",i);
printf("\n%d",*p);
printf("\n%d",*(&i+1));
return 0;
}
what i noticed, i become inaccessible after execution i ++ p = 2, WHY?
source
share