objective c - Convention for pointer * -


out of curiosity; why convention pointers in c languages this:

nsstring *str = ...

wouldn't more appropriate write:

nsstring* str = ...

because defining pointer nsstring? (in objective-c methods have (nsstring*)parameter1 convention)

again - i'm asking out of curiosity , able better understand logic behind this... i'm not trying reinvent wheel or start flame war.

if declare multiple pointer variables in single declaration, must write

char *a, *b; 

since declaration

char* a, b; 

would declare a char pointer, b plain char. iow, spacing shows asterisk binds name appears.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -