array in method declaration c++ code example Example: array syntax in c++ int bar [5] = { 10, 20, 30 };