c++ fill array with 0

#include <iostream>

int main() {
    const int size = 10;  // Step 1: Define the size of the array
    int myArray[size];    // Step 2: Declare an array of integers with the specified size

    for (int i = 0; i < size; ++i) {
        myArray[i] = 0;    // Step 3: Use a loop to fill each element of the array with 0
    }

    // The array 'myArray' is now filled with 0s

    return 0;
}