📄 clrarray.c
字号:
/*
** Set all of the elements of an array to zero.
*/
void
clear_array( int array[], int n_elements )
{
/*
** Clear the elements of the array starting with the last
** and working towards the first. Note the predecrement
** avoids going off the end of the array.
*/
while( n_elements > 0 )
array[ --n_elements ] = 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -