reset c array to zero

#include <stdio.h>

int main() {
    int arr[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

    // Reset the array to zero
    for (int i = 0; i < 10; ++i) {
        arr[i] = 0;
    }

    // Display the modified array
    for (int i = 0; i < 10; ++i) {
        printf("%d ", arr[i]);
    }

    return 0;
}