black

软件工程

登录

问答题

简答题

请写一程序,统计通过键盘输入的命令行中的第二个参数所包含的英文字符的个数。 提示:使用带参数的main函数形式。

【参考答案】

相关考题

问答题 已知整型数组A[0..m-1][0..n-1],请写一函数,该函数返回数组最外围一圈元素之和。

填空题 下列程序的主要功能是()。  #include   main( ) {      FILE *in,*out;      char ch,infile[10],outfile[10];      printf(“Enter the infile name:\n”);      scanf(“%s”,infile);      printf(“Enter the outfile name:\n”);      scanf(“%s”,outfile);      if((in=fopen(infile, “r”))==NULL){          printf(“Cannot open infile\n”);          exit(0);      }  if((out=fopen(outfile, “w”))==NULL){          printf(“Cannot open outfile\n”);          exit(0);      }      while(!feof(in))          fputc(fgetc(in),out);      fclose(in);      fclose(out);  }

填空题 若下列程序中的函数scmp功能是返回形参指针s1和s2所指字符串中较小字符串的首地址,并且运行程序时依次输入abcd、abba和abc三个字符串,则该程序的输出结果是()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2