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
Post a Comment