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