Category Archives: C

Interpreting Complex C Declarations

Once you start mixing pointers to functions in your C declarations you’ll notice that things can get complex. For example, what does the following declaration represent: float * (* (*ptr)(int))(double **,char c) What about this one: unsigned **( * (*ptr) [5] ) (char const *,int *) One tool you can use to help you with […]