0 votes 0 votes What does this mean? int *(*func())[] According to me , it means that its an array of pointers to functions which returns pointers of type int. Am I correct? chat28 asked Jan 11, 2016 chat28 660 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 4 votes 4 votes For these type of complicated declarations, you can follow Clockwise/Spiral rule : http://c-faq.com/decl/spiral.anderson.html By that rule, func is a function taking no arguments and returning a pointer to an array of pointers to int. Happy Mittal answered Jan 11, 2016 • selected Jan 11, 2016 by Arjun Happy Mittal comment Share Follow See all 2 Comments See all 2 2 Comments reply Nitesh Methani commented Apr 25, 2017 reply Follow Share MS interview question 3...there is no option here matching your answer....can u please look again? 0 votes 0 votes Happy Mittal commented Apr 26, 2017 reply Follow Share Yeah there is no correct option present there, there must have been some mistake. precedence of () operator is greater than * operator, so answer given above is correct. 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes func is a function returning pointers to array of pointers to int Shashank Chavan answered Jan 11, 2016 Shashank Chavan comment Share Follow See all 0 reply Please log in or register to add a comment.