declare foo as pointer to function returning pointer to function
returning pointer to array 3 of pointer to function returning
pointer to array 4 of array 2 of pointer to pointer to function
returning pointer to array 5 of pointer to pointer to char
char **(*(**(*(*(*(*(*foo)())())[3])())[4][2])())[5]
To turn the above into a cast, remove the name `foo' and add ():
(char **(*(**(*(*(*(*(*)())())[3])())[4][2])())[5])
returning pointer to array 3 of pointer to function returning
pointer to array 4 of array 2 of pointer to pointer to function
returning pointer to array 5 of pointer to pointer to char
char **(*(**(*(*(*(*(*foo)())())[3])())[4][2])())[5]
To turn the above into a cast, remove the name `foo' and add ():
(char **(*(**(*(*(*(*(*)())())[3])())[4][2])())[5])
Related:
- An Ode to C:
0x0d2C
~~~~~~
May your signals all trap
May your references be bounded
All memory aligned
Floats to ints rounded.
And Remember ... Non-zero is true ... - JLP: Jump
and Lose... - NOP: Needlessly Omit
... - PSP: Push
Stack... - SDP: Search and
Destroy... - handle n.
1. [from CB slang] An electronic pseudonym;
a `nom de guerre' intended to conceal the user's... - vaxocentrism /vak`soh-sen'trizm/ n.
[analogy with
`ethnocentrism'] A notional disease said to afflict C programmers
who persist in coding according to certain assumptions that are
valid (esp.
under Unix) on VAXen but false elsewhere. Among ... - Suspicious pointer corrupted
virtual... - ptr=(void *)666;
/* The pointer from hell....
