define new array in c++ code example Example: how to array in c++ int foo [5] = { 16, 2, 77, 40, 12071 };