Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (yrelhan4):

I just started with pointers in C.. What is the difference between int *m[a] and int (*m)[a]? I think the first one simply declares an array m of a elements. What do you mean by the second declaration?

OpenStudy (anonymous):

Assuming that a is constant declared before compilation: int *m[a] - looks like an array of pointers (int type) int (*m)[a] - looks like a pointer to array of integers

OpenStudy (anonymous):

Very helpfull tool is: http://cdecl.ridiculousfish.com/?q=int+*m%5B5%5D%3B it converts c declaration to english ;)

OpenStudy (yrelhan4):

Thank you so much.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!