I am fairly new at C and I don't know the difference between the following two variable declarations:
int* ptr;
int *ptr;
I think that in the declaration int* ptr;
, ptr
's value cannot be changed whereas it can be changed for the declaration, int *ptr;
I am not sure if that is it though.
What is the concept behind the two declarations?