阅读下面程序,则执行后的输出结果为
()
第2题
阅读下面程序,则执行后程序的结果为 【9】
#include "stdio.h"
main()
{ int a=0,b=0;
while(a <15)a++;
while(b++ <15);
printf("%d,%d\n",a,b);}
第3题
A.8
B.56
C.64
D.0
第5题
阅读下面程序,则执行后的结果为
#include "stdio.h"
main()
{ char *str="abcdefghijklmnopq";
while(*str++!=′e′);
printf("%c\n",*str);}
A.f
B.a
C.e
D.q
第6题
A.f
B.a
C.e
D.a
第7题
阅读下面程序,则程序的执行结果为 【10】 。
#include "stdio.h"
main()
{ int a=10;
fun(a);
printf("%d\n",a);}
fun(int x)
{ x=50;}
第10题
阅读下面程序,则执行后的结果为 #include"stdio.h" long fun(int n) { if(n>2) return(fun(n-1)+fun(n-2)); else return(2);} main() { printf("%ld\n",fun(5));}
A.10
B.15
C.20
D.以上3个答案都不正确
第11题
阅读下面程序段,则执行后的结果为
#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.64
B.8
C.56
D.0
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!