Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
What type of C++ pointer is this?
int (*(*func5)[2])();
I have this line of code in an study on c++ pointers with functions and arrays but i don't understand it. can anyone provide a real basic example on what this does? My guess is that it is an array containing pointers which point to pointers that point to functions with return type of int?
2 Answers
- ?Lv 51 decade agoFavorite Answer
Wow, thats a complex one.
That's a pointer to an array of 2 function pointers. The array contains the addresses of functions that take no parameters and return an int. The pointer to the array is called 'func5'.
- FudgeLv 51 decade ago
seems it's a pointer to an array of function pointers that return ints..not sure though sry