计算机科学与技术

下面程序的运行结果是(   )。#includemain(){ FILE *fp;  int a=2,b=4,c=6,k,n;  fp=fopen("test.dat","w"); fprintf(fp,"%d\n",a); fprintf(fp,"%d %d\n",b,c); fclose(fp); fp=fopen("test.dat","r"); fscanf(fp,"%

下面程序的运行结果是(   )。#includemain(){ FILE *fp;  int a=2,b=4,c=6,k,n;  fp=fopen("test.dat","w"); fprintf(fp,"%d\n",a); fprintf(fp,"%d %d\n",b,c); fclose(fp); fp=fopen("test.dat","r"); fscanf(fp,"%

文本文件quiz.txt的内容为"Programming" (不包含引号),以下程序段的运行结果是(   )。FILE *fp; char *str; if((fp=fopen("quiz.txt","r"))!=NULL)      str=fgets(str,7,fp);printf("%s",str);

文本文件quiz.txt的内容为"Programming" (不包含引号),以下程序段的运行结果是(   )。FILE *fp; char *str; if((fp=fopen("quiz.txt","r"))!=NULL)      str=fgets(str,7,fp);printf("%s",str);B