With an array of a specified size, the compiler warns me if I placed too many elements in the initialization:
int array[3] = {1,2,3,4}; // Warning
But, of course, it doesn't do so if I place too few elements (it just fills them with 0s):
int array[3] = {1,2}; // OK (no warning)
Yet, I MUST ensure at compile time that I specify exactly N elements in the initialization of an N-element array (it's an array of function pointers).
Can I have the compiler warn me if I specified too few elements?