It's uninitialized
If i take you out this pointer, he give me a address, but address of what?
The address is "whatever was at that memory location already"
Presumably in the code you are looking at it will be assigned further down
yeah, of course if you do this: int *ptr; ptr = malloc(sizeof(int)); // use ptr... That's fine, since you assign it before you use it
Destiny.
Обсуждают сегодня