By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,795 Members | 1,832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,795 IT Pros & Developers. It's quick & easy.

Pointer: What does int *( *a( ) ) [n] mean?

P: 10
I got a problem about the [code]declaration...

int *( *a( ) ) [n];

(while a is a name and n is an arbitrary integer number.)

Don't just reply to me about the questions.

I also wanna know under what circumstances we can use the declaration.

Give some examples if you can. Thanks...[/PHP][/HTML]
Mar 21 '07 #1
Share this Question
Share on Google+
4 Replies


DeMan
100+
P: 1,806
I'm not sure that is quite the right syntax, but it appears to me that the attempt is to make an array of function pointers returning int pointer?????

YOu might find more information of function pointershere
Mar 21 '07 #2

arne
Expert 100+
P: 315
int *( *a( ) ) [n];
This should declare a function called 'a' which returns a pointer to an array with n elements and whose elements are pointer to ints.
Mar 21 '07 #3

P: 10
This should declare a function called 'a' which returns a pointer to an array with n elements and whose elements are pointer to ints.
canu give some example??
Mar 22 '07 #4

sicarie
Expert Mod 2.5K+
P: 4,677
canu give some example??
With that description, what do you think an example would look like?
Mar 22 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.