We know that in “C”, variable declaration involving functions and pointers at times gets quite confusing.
If you disagree please have a go at
declare x as const pointer to array 10 of pointer to function (int) returning const pointer to char
char *(*(**foo)()); // decipher quickly please : )
It is certainly quite obtuse unless you are well versed with “right-left” rule.
Linux has this nice program cdecl which helps in figuring out where to put parentheses and where to put “const” and “volatile” modifiers in declarations. There is an online version of cdecl and like Detexfy I find it very useful and simple and hence sharing it here. If you are still itching your head with above examples, go an try your self on http://cdecl.org/