作者Yehr (小葉)
看板b95902HW
標題[課程] 一些關於指標的事
時間Sat Oct 28 23:04:56 2006
int i; // integer variable
int *p; // pointer to integer variable
int a[]; // array of integer
int f(); // function with returnvalue integer
int **pp; // pointer to pointer to integer
int (*pa)[]; // pointer to an array of integer
int (*pf)(); // pointer to a function with returnvalue integer
int *ap[]; // array of pointers to integer
int *fp(); // function, which returns a pointer to an integer
int ***ppp; // pointer to a pointer to a pointer to integer
int (**ppa)[]; // pointer to a pointer to an array of integer
int (**ppf)(); // pointer to a pointer to a function with returnvalue integer
int *(*pap)[]; // pointer to an array of pointers to integer
int *(*pfp)(); // pointer to function with returnvalue pointer to integer
int **app[]; // array of pointer to pointer to integer
int (*apa[])[];// array of pointers to array of integer
int (*apf[])();// array of pointers to functions with returnvalue integer
int ***fpp(); // function with returnvalue pointer to pointer to pointer to int
int (*fpa())[];// function with returnvalue pointer to array of integers
int (*fpf())();// function with returnvalue pointer to function, which
returns an integer
指標參不透時不妨圖解一下 不要因為時間緊迫而減少你玩味各種可能的機會
<(_ _)>
※ 編輯: Yehr 來自: 140.112.30.43 (10/28 23:05)
※ 編輯: Yehr 來自: 140.112.30.43 (10/28 23:06)
1F:推 joejoe321321:這....這是開玩笑的吧 = = 10/29 00:10
2F:推 purincess:簡言之: 括號是關鍵! 10/29 00:22
3F:推 springgod:可以偷偷說一下我也是星期四演習課才會的嗎XDDDDD 10/29 00:57
4F:推 kerickuo:基本上有些平常很難用到,出來工作更難用到…因為別人會 10/29 20:07
5F:→ kerickuo:看不懂… 10/29 20:08