Possible Duplicate:
In C, what is the correct syntax for declaring pointers?
When I read C code, I see several ways to write a pointer,like
int *p;
char * s;
char * d = &c;
ll_model* model = new_ll_model(n, cc->term);
double* avg_ll;
My questions are:
Are there any differences between them?
If there are, what are the differences? That is, does the position of white space and the
*
mean something?Which way is the right way to write a pointer, so it is readable to myself and any other person who will read my code