倒序遍历

int arr[10];
for (size_t i = 10; i != 0; i--) {
    arr[i-1] = 0;
}
原文地址:https://www.cnblogs.com/azureice/p/8493566.html