#include "stdio.h"
main()
{ int a=0,b=0;
while(a <15)a++;
while(b++ <15);
printf( "%d,%d\n",a,b);}
[单选题]阅读下面程序,则程序执行后的结果为#include "stdio.h"main(){int a=4,b=6,c=7;double d,fun(int,int,int);d=fun(a,b,c);printf("%lf\n",d);}double fun(int a,int b,int c){double s;s=a%b*c;return s;}A.27B.27.000000C.28D.28.000000
[主观题]阅读下面程序,则程序的执行结果为 (10) 。#include "stdio.h"main(){int a=30,b=20,z;z=fun(a+b,a-b);printf("%d\n",z);}fun(int a,int b){int z;z=a/b;return z;}
[主观题]阅读下面程序,则程序的执行结果为(19)。#include "stdio.h"fun(int k,int *p){ int a,b;if(k==1||k==2)*p=1;else{ fun(k-1,&a);fun(k-2,&b);*p=a+b;}}main(){ int x;fun(6, &x);printf( "%d\n",x);}
[主观题]阅读下面程序,则程序的执行结果为 (10) 。#include "stdio.h"main(){ int a=10;fun(a);printf( "%d\n",a);}fun(int x){ x=50;}
[单选题]阅读下面程序,则执行后的结果为#include "stdio.h"main(){ char *str="abcdefghijklmnopq";while(*str++!=′e′);printf( "%c\n",*str);}A.fB.aC.eD.q
[单选题]阅读下面程序,程序执行后的结果为( )。 #include"stdio.h" main() {char*str="abcdefghijklnmopq": while(*str++!='e'); printf("%c/n",*str); }A.fB.aC.eD.a
[单选题]阅读下面程序段,则执行后的结果为#include "stdio.h"main(){int m=4,n=2,k;k=fun(m,n);printf("%d\n",k);}fun(int m,int n){return(m*m*m-n*n*n);}A.64B.8C.56D.0
[单选题]阅读下面程序,则执行后的结果是#include "stdio.h"main(){char str[]="tomeetme",*p;for(p=str;p<str+7;p+=2) putchar(*p);printf("\n");}A.tomeetmeB.tmemC.oeteD.tome
[单选题]阅读下面程序,则执行后的结果是 #include"stdio.h" main() { char str[]="tomeetme",*p; for(p=str;p<str+7;p+=2)putchar(*p); printf("/n");} .A.tomeetmeB.tmemC.oeteD.tome
[主观题]阅读下面语句,则程序的执行结果是 (7) 。#include "stdio.h"main(){ int a=-1,b=1,k;if((++a <0)&&!(b--<=0))printf("%d,%d\n",a,b);else printf( "%d,%d\n",b,a);}