how to zero initialize array c++ code example
Example 1: c++ initialize array with all zeros
int myArray[10] = { 0 }; // all elements 0
Example 2: initialize array c++
int foo [5];
int myArray[10] = { 0 }; // all elements 0
int foo [5];