可能重複:
What's your preferred pointer declaration style, and why?
In C, why is the asterisk before the variable name, rather than after the type?
What makes more sense - char* string or char *string?Objective-C對象實例聲明中的星號:由Object還是由實例?
當聲明在Objective-C的對象的新實例,它使任何區別,你把星號?
這只是個人喜好的問題嗎?
NSString* string = @"";
與
NSString *string = @"";
這已經被問* *很多次才:http://stackoverflow.com/questions/180401/c-asterisks-and-指針http:// stackoverflow。com/questions/2660633/declaring-pointers-asterisk-on-the-the-the-the-the-space-between-the-type-a http://stackoverflow.com/questions/558474/what-makes -more-sense-char-string-or-char-string http://stackoverflow.com/questions/377164/whats-your-preferred-pointer-declaration-style-and-why http://stackoverflow.com/questions/398395/in-c-why-the-as-the-as-the-variable-name-before-the-after-the-type這裏僅舉幾例 –
我相信這個問題仍然很重要,因爲它很可能被發現通過可能不知道使用短語「C指針」的Objective-C初學者。 – andyvn22
@Adam Rosenfield - 你更喜歡哪一個? – MJN