how to make a static array in c++ code example Example 1: array declaration c++ int foo [5]; Example 2: arrays in c++ int baz [5] = { };