Auriwield Auriwield - 1 month ago 5
C Question

What does this statment mean? (С/C++)

I cant understand what does this statment do. For what? How this can be used in code?

int *(*(*f[][5])())[];

Answer

Try out this handy website for explaining complex type declarations:

http://cdecl.ridiculousfish.com/?q=+int+%28%28*f%5B%5D%5B5%5D%29%28%29%29%5B%5D

int *(*(*f[][5])())[]

means:

declare f as array of array 5 of pointer to function returning pointer to array of pointer to int

Comments