do d operations on array c++ code example Example 1: c++ initialize array int arr[3] = {1, 5, 4}; Example 2: arrays in c++ int baz [5] = { };