how to make a c++ matrix element initally 0 code example Example 1: c++ initialise array int nCount[] = {1, 2, 3, 4, 5}; Example 2: initialize array c++ int foo [5];