I know the compiler sets the uninitialized array elements to 0 if the array is partially initialized.
int arr[3] = {3,1};
But is there a warning option in GCC or similar method to list partially initialized arrays?
I know the compiler sets the uninitialized array elements to 0 if the array is partially initialized.
int arr[3] = {3,1};
But is there a warning option in GCC or similar method to list partially initialized arrays?