nNumber = 25;
pPointer = &nNumber;
printf("Value of *pPointer: %d\n", *pPointer);
grytskiv@ZXDSL831II:~/scope$ gcc -ansi function.c -o function && ./function
Value of *pPointer: 25
I recive value of "nNumber" variable. But "nNumber" is must deleted after complete execution function "my_function".
Why I recive value of removed variable?
May be this variable deleted but pice memory don't nulled, and this pice can modification other proccess or thread?