initialize an array in cpp code example
Example 1: create array c++
int foo[5] = {0};
Example 2: c++ initialize array
int arr[3] = {1, 5, 4};
Example 3: initialize array c++
int foo [5];
int foo[5] = {0};
int arr[3] = {1, 5, 4};
int foo [5];