单选

有如下程序段

#include "stdio.h"

#include "string.h"

#define N 10

#define M 10

char *find(char(*a)[M],int n)

{  char *q;int i;

q=a[0];

for(i=0;i

if(strcmp(a[i],q)<0)q=a[i];

return q;}

main()

{ char s[N][M]={"tomeetme","you","and","he","china"};

char *p;

int n=5;

p=find(s,n);

puts(p);}

则执行后输出的结果为

  • A.he
  • B.and
  • C.you
  • D.tomeetme
参考答案
您可能感兴趣的试题
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服