📜  将 c 数组重置为零 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:41.159000             🧑  作者: Mango

代码示例1
#define ZERO(a,n) do{\
    size_t i_ = 0, n_ = (n);\
    while (i_ < n_){\
        (a)[i_] = 0;\
        ++i_;\
    }\
} while (0)