2011-06-30 32 views

回答

4

號有一個在所有沒有區別。這是相同Ç語言。它們都是指向NSString的指針。

有些人喜歡後來的形式,因爲它明確什麼是變量的指針。即:

int* i, j; 
// i is a pointer 
// j is not a pointer 

int *i, j; 
// makes clearer that i is a pointer while j is not 

int *i, *j; // both pointers... 

退房就這個話題C-FAQ entry

+0

有沒有做這件事的一個行業標準的方式?這只是用戶偏好? –

+1

號沒有標準可言。這個討論可以回溯到C時代。 –