intialize an entire array to the same value cpp

#include <iostream>

int main() {
    const int SIZE = 5;
    int arr[SIZE];

    int initialValue = 10;
    for (int i = 0; i < SIZE; i++) {
        arr[i] = initialValue;
    }

    for (int i = 0; i < SIZE; i++) {
        std::cout << arr[i] << " ";
    }

    return 0;
}