, , " ". ++ - "" - .
, , :
: int x, *p, *q;, , . ++ , , . , .
, 1. , q &x . q , , ++ 3 - . , ++ .
3. ++ - , , , . , q *q , , .
4. , 3., (x==0) , , , , , .
int .
, .
:
int *x; <-- Declares a pointer and allocates it on the stack
x = new int; <-- Allocate a new int on the heap and remember its address in x
*x = 5; <-- Overwrite the new int on the heap.
x = new int; <-- Another allocation and remember its address in x
Now we have forgotten where the first allocation was
, . , . null , .