initialize an array with multiple element type cpp code example Example: c++ initialize array int arr[3] = {1, 5, 4};