I'm right? - expression C

int *(*(*P)[2][2])(int,int);

P is a pointer to an array of 2x2 pointers to a function with 2 parameters of type int, which returns a pointer of type int. Is it correct?

+3
source share
1 answer

cdecl - A great tool to solve these problems:

$ cdecl
Type `help' or `?' for help
cdecl> explain int *(*(*P)[2][2])(int,int);
declare P as pointer to array 2 of array 2 of pointer to function (int, int) returning pointer to int

So you are right.

+16
source

Source: https://habr.com/ru/post/1790327/


All Articles