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

About pointer defining term like int p(char *a) ,int(*p(char*a))[10], int *p(void),

P: 1
this is about pointer which is used in c programming language.
Sep 21 '18 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 5K+
P: 9,197
What you are showing are functions that have pointer arguments. Functions cannot define pointers. All they can do is use them.

Exactly what is your question?
Sep 23 '18 #2

Expert 100+
P: 2,400
I think you meant to ask what each of the following statements mean.
Expand|Select|Wrap|Line Numbers
  1. int p(char *a);
  2. int (*p(char *a))[10];
  3. int *p(void);
The middle one is tricksy; but can you describe what the other two mean?

I'll give you a hint: the middle statement is a definition; but the other two statements are declarations.
Sep 27 '18 #3

Post your reply

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