题目
第2题
第3题
下列程序的输出结果是()。
#include<stdio.h>
void p(int*x)
{ printf("%d¨,++*x);
}
void main()
{ int y=3;
p(&y);
}
A.3
B.4
C.2
D.5
第4题
现有如下程序: }}include“stdio.h” void fun(int x) { printf(“x=%d\n”,++x); } void main() { fun(12+5); ) 则程序的输出结果是()。
A.12
B.13
C.17
D.1 8
第5题
A.#include <stdio.h> int main(); { /*programming*/ printf("programming!n"); return 0; }
B.#include <stdio.h> int main() { /*programming*/ printf("programming!n"); return 0; }
C.include <stdio.h> void main() { /*programming*/ printf("programming!n"); return 0; }
D.#include <stdio.h> int mian() { /*programming*/ printf("programming!n"); return 0; }
第6题
下列程序的运行结果为【14】
#include <stdio.h>
#include <string.h>
struct A
{int a;char b[10];double c;};
void f (struct A *t);
main()
{struct A a=(1001,”ZhangDa”,1098,0);
f(&a);printf(“&d,&s,&6,if\n”,a.a,a.b,a.c);
}
void f(struct A *t)
{strcpy(t->b,”ChangRong”); }
第7题
下列程序的输出结果是()。 #include<stdio.h> void p(int *x) { printf("%d",++*x); } void main() { int y=3; p(&y); }
A.3
B.4
C.2
D.5
第8题
A.#include <stdio.h> int main(); { /*programming*/ printf("programming!n"); return 0; }
B.#include <stdio.h> int main() { /*programming*/ printf("programming!n"); return 0; }
C.include <stdio.h> void main() { /*programming*/ printf("programming!n"); return 0; }
D.#include <stdio.h> int mian() { /*programming*/ printf("programming!n"); return 0; }
第9题
试题11
以下程序运行后的输出结果是______.
#include <stdio.h>
void fun(int x)
{ if(x/5>0) fun(x/5)
printf(“%d”, x);
}
main()
{ fun(11); printf(“\n”);}
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!