题目
B.To import oil from abroad
C.To sell coal abroad
D.To exchange goods with foreign nations so a5 to get vital foodstuffs and manufactured goods
第1题
有以下程序
#include <stdio.h>
#include <string.h>
main()
{ char str[ ][20]={"One*World","One*Dream!"},*p=str[1];
printf("%d,",strlen(p));printf("%s\n",p);
}
程序运行后的输出结果是
A)9,One*World
B)9,One*Dream !
C)10,One*Dream !
D)10,One*World
第2题
程序中若有如下说明和定义语句
char fun(char*);
main()
{
char*s="one",a[5]={0},(*f1)()=fun,ch;
……
}
以下选项中对函数fun的正确调用语句是
A.(*f1)(A) ;
B.*f1(*s);
C.fun(&A) ;
D.ch=*f1(s);
第3题
有以下程序 main () { char *s[]={"one","two","three"},*P; p=s [1]; printf ("%c, %s\n", *(p+1) ,s[0] ); } 执行后输出结果是
A.n,two
B.t,one
C.w,one
D.o,two
第4题
有以下程序
#include<stdio.h>
#include<string.h>
main()
{char str[][20]={“Qne*World”,“one*Dream!”},*P=str[1 ].
prinff(“%d,”,strlen(p));printf(“%s\n”,P); ’
}
程序运行后的输出结果是
A.9,One*World S)9,One*Dream!
B.10,One*Dream!
C.10,One*World
第5题
程序中若有如下说明和定义语句 char fun (char*); main() { char*s="one",a[5]={0},(*f1)()=fun,ch; … } 以下选项中对fun()函数的正确调用语句是——。
A.(*f1)(a);
B.*f1(*s);
C.fun(&a);
D.ch=*f1(s);
第6题
程序中若有如下说明和定义语句: char fun(char *); main() {char * s="one", a[5]={0},(* f1)()=fun,ch; ┆ } 以下选项中对函数fun的正确调用语句是()。
A.(* f1)(a);
B.* f1(* s);
C.fun(&a);
D.ch=* f1(s)
第7题
程序中若有如下说明和定义语句
Char fun(char *);
main()
{
char *s="one", a[5]={0}.(*f1)()=fun, ch;
…
}
以下选项中对函数fun的正确调用语句是
A.(*f1)(A) ;
B.*fl(*s);
C.fun(&A) ;
D.ch=*fl(s);
第8题
A.n,two
B.t,one
C.w,one
D.o,two
第9题
有以下程序: main() { char *S[]={"one","two","three"},*p; p=s[1]; printf("%c,%s\n", *(p+1), s[0]); } 执行后输出结果是()。
A.n,two
B.t,one
C.w,one
D.o,two
第10题
有以下程序
#include<stdio.h>
#include<string.h>
main()
{char str[][20]={“Qne*World”,“one*Dream!”},*P=str[1 ].
prinff(“%d,”,strlen(p));printf(“%s\n”,P); ’
}
程序运行后的输出结果是
A.9,One*World S)
B.9,One*Dream!
C.10,One*Dream!
D.10,One*World
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!