Sometimes it is used in this way like int * ptr
which i know means that we are creating a pointer but in some other cases it is used in this way int *ptr
and also in this way int* ptr
.
Can you plz explain me what's happening in the last two ways.