I have seen const used twice in the declaration of a static array before and now that I am creating my own static array I am wondering why const would be needed twice in some situations.

Does having an array of pointers make a difference?

a. static const TYPE name[5];
b. static const TYPE const name[5];

c. static const TYPE* name[5];
d. static const TYPE* const name[5];

My understanding is that b. is invalid, but if using const twice is valid, what is its purpose?

Edit
Report