填空题

以下程序中函数fun的功能是:统计person所指结构体数组中所有性别(sex)为M的记录的个数,存入变量n中,并作为函数值返回。请填空。
#include
#define N 3
typedef struct
int num;char nam[10];char sex;SS;
int fun(SS person[]
int i,n=0;
for(i=0;i<N;i++)
if( [14] ==’M’)n++;
return n;

【参考答案】

[14] person[i].sex