方法一

for循环对arr[i]赋值

方法二

memset( arr, 0x00, sizeof( arr ) )

方法三

bzero( arr, sizeof( arr ) )

方法四

arr[0] = 0

更多推荐

C语言清空数组的几种方式