星期一, 1月 01, 2007

complex declarations

char (* (*x ())[]) ();

x is a function returning pointer to array[] of pointer to function returning char.

char (* (*x[3]) ())[5];

x is a array[3] of pointer to function returning pointer to array[5] of char.

又看到以前看過的奇怪宣告,如今還是難以看出那是什麼
(還好會拆解)

--
出自 《The C Programming Language》

沒有留言: