#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;
}
[主观题]阅读下面程序,则程序的执行结果为 (10) 。#include "stdio.h"main(){ int a=10;fun(a);printf( "%d\n",a);}fun(int x){ x=50;}
[主观题]阅读下面程序,则程序的执行结果为(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);}
[单选题]阅读下面程序,则程序执行后的结果为#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
[单选题]阅读下面程序,则执行后的结果为#include "stdio.h"main(){ char *str="abcdefghijklmnopq";while(*str++!=′e′);printf( "%c\n",*str);}A.fB.aC.eD.q
[主观题]阅读下面程序,则执行后程序的结果为 (9)#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() {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
[单选题]阅读下列程序,则执行结果是#include "stdio.h"main(){int a=0,b=0,c=0,i;for(i=0;i <4;i++)switch(i){case 0:a=i++;case 1:b=i++;case 2:c=i++;case 3:i++;}printf("%d,%d,%d,%d\n",a,b,c,i);}A.0,1,3,4B.1,2,3,4C.0,1,2,5D.0,2,3,4