【单选题】
下面程序的运行结果是( )。
#includemain()
{ int num=0;
while (num=2)
{num++
printf (%d\n,num);}
}
【单选题】
下面程序的运行结果是()。#includestdio.hmain(){FILE*fp;inta=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,"%d%*d%d",k,printf("%d%d\n",k,n);fclose(fp);}
【单选题】
以下程序的运行结果是( )。#include stdio.hmain(){struct date{ int year,month,day;}today;printf(%d\n,sizeof(today));}
【简答题】
有以下程序#includestdio.hmain(){ int x;scanf(%d,if(x15) printf(%d,x-5);if(x10) printf(%dif(x5) printf(%d\n,x+5); }若程序运行时从键盘输入7回车,则输出结果为[填空1]。
【简答题】
有以下程序#includestdio.hmain(){ int x;scanf(%d,if(x15) printf(%d,x-5);if(x10) printf(%dif(x5) printf(%d\n,x+5); }若程序运行时从键盘输入12回车,则输出结果为[填空1]。
【简答题】
有以下程序#includestdio.hmain(){ int x;scanf(%d,if(x15) printf(%d,x-5);if(x10) printf(%dif(x5) printf(%d\n,x+5); }若程序运行时从键盘输入12回车,则输出结果为[填空1]。
【简答题】
有以下程序(说明:字符0的ASCII码值为48)#includestdio.hmain(){ char c1,c2;scanf(%d,c2=c1+9;printf(%c%c\n,c1,c2); }若程序运行时从键盘输入48回车,则输出结果为[填空1]。
【单选题】
下面的程序段运行后,显示的结果是( )。 Dim x
If x Then Print x Else Print x+1
【单选题】
以下程序运行后,文件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);}
【单选题】
下面是一段汇编语言源程序,请指出程序运行后的结果是。MOV23H,#0AHCLRALOOP:ADDA,23HDJNZ23H,LOOPSJMP$