Do they both mean the same thing? Does their meaning differ between C and C++?
You can answer this kind of question for yourself using http://cdecl.org/ (paste in the type and it tells you what it means in English).
Do they both mean the same thing?
No.
Does their meaning differ between C and C++?
No.
int* a[5] is an array of five pointers to int.
int (*a)[5] is a pointer to an array of five ints.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With