?? find_int.c
字號:
/*
** Find the place in an array where a particular integer value
** is stored, and return a pointer to that location.
*/
#include <stdio.h>
int *
find_int( int key, int array[], int array_len )
{
int i;
/*
** For each location in the array ...
*/
for( i = 0; i < array_len; i += 1 )
/*
** Check the location for the desired value.
*/
if( array[ i ] == key )
return &array[ i ];
return NULL;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -