#include <iostream>
using namespace std;
// 第一個函式，帶有 const 陣列參數
void processArray(const int arr[], int size);

// 第二個函式，正確地使用 const 接收陣列
void anotherFunction(const int arr[], int size) {
    processArray(arr, size); // 正確，因為 processArray 也使用 const
}

// 函式定義
void processArray(const int arr[], int size) {
    for (int i = 0; i < size; ++i) {
        cout << arr[i] << " ";
    }
        cout << endl;
}

int main() {
    int numbers[] = {5, 10, 15, 20};
    anotherFunction(numbers, 4);
    return 0;
}

    
    