【单选题】
以下程序运行后,文件test.txt的内容是()。#includestdio.hmain(){FILE*fp;charstr[][10]={"first","second"};fp=fopen("test.txt","w");if(fp!=NULL)fprintf(fp,"%s",str[0]);fclose(fp);fp=fopen("test.txt","w");if(fp!=NULL)fprintf(fp,"%s",str[1]);fclose(fp);}
【单选题】
以下程序的运行结果是()。intfun(inta[4][4]){inti;for(i=0;ii++)printf("%2d",a[i][2]);printf("\n");}main(){inta[4][4]={1,1,2,2,1,9,0,0,2,4,0,0,0,5,9,8};fun(a);}