how to declare and initialize an array in c++ code example Example: c++ initialize array int arr[3] = {1, 5, 4};