Yes, uninitialized array elements will be zeros. Example:
If the initializer feeds too few elements, 0 is accepted for the remaining elements of the array:
int v5[8] = { 1 , 2 , 3 , 4 };
equivalently
int v5[] = { 1 , 2 , 3 , 4 , 0 , 0 , 0 , 0 };
Chaithra
source share