Parentheses Around Pointer Declaration?

Quick question: What's the difference?

int *myPointer[5];

vs

int (*myPointer)[5];

I believe the first one creates an array of 5 pointers. But do the parentheses do anything? (yes, both do compile fine)

No, the parens are superfluous, but also harmless. For those not fluent in c/c++ operator precedence, added parens can make the intent more clear, which I suppose they do in your example.

Regards, Ray L.