634 views
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?

2 Answers

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.

selected by

Related questions

3 votes
3 votes
1 answer
1
Storm_907 asked Apr 16, 2023
442 views
Please explain this question void main() { int a =300; char *ptr = (char*) &a ; ptr++; *ptr=2; printf("%d" , a); }
4 votes
4 votes
4 answers
3
Manoj Kumar Pandey asked May 22, 2019
797 views
https://gateoverflow.in/?qa=blob&qa_blobid=14433986388826671915int main() { int a = 10; int *b = &a; scanf("%d",b); printf("%d",a+50); }What will be the Output of the fol...