c++ define array of zeros code example
Example 1: c++ initialize array with all zeros
int myArray[10] = { 0 }; // all elements 0
Example 2: zeros of array c++
int A[5]; // Entries remain uninitialized
int B[5]= { 0 }; // All entries set to zero
int myArray[10] = { 0 }; // all elements 0
int A[5]; // Entries remain uninitialized
int B[5]= { 0 }; // All entries set to zero