pointers

is this a valid c declaration

int (*ptr(int *b))[5];

plz explain...

valid,
this is a declaration of function with argument int* that returns pointer to an array of int*:

int (*ptr(int *b))[5];
int i;
int (*pi)[5] = ptr(&i);
i = *pi[0];

Why do you ask if this is valid? A simple compile would have shown whether it is valid or not. This looks like homework. This is against rule #6.

And please follow rule number 9 as well:

"please" is only 3 more characters than "plz".

Hey, don't frighten people. Simple question, simple answer. What a problem?

The problem, Hitori, is that it is obviously evident that no effort was put into this question.

Every one of these posts by areef4u has either been closed, or if not closed, areef4u has been warned not to post homework questions.