Web anvari.org
Anvari.Org
» Anvari.Org

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,

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])

Related:




Retrieved from http://www.anvari.org/fortune/Miscellaneous_Collections/58315_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.html