题目内容 (请给出正确答案)
[主观题]

以下程序运行结果是()。 void main() { char a[]="abc",*p; for(p=a;p <a+3;p++) printf("%s",p);> A、abcbcc

B、abc

C、cbabaa

D、cba

提问人:网友wwwsky 发布时间:2022-01-06
参考答案
  抱歉!暂无答案,正在努力更新中……
如搜索结果不匹配,请 联系老师 获取答案
更多“以下程序运行结果是()。 void main() { cha…”相关的问题
第1题
下面程序段的输出结果是() char a[7]="abcdef"; char b[4]="ABC"; strcpy(a,b); printf("%c",a[5]);

A、\0

B、e

C、f

D、(空格)

点击查看答案
第2题
设有说明:char str[ ]=”\t\’abcde\n”;则语句printf (“%d”,strlen(str)) ; 的输出值为( )。

A、5

B、11

C、非法说明

D、8

点击查看答案
第3题
以下程序的输出结果是( ): int main( ) { char *p[ ]={"PROGRAM","BASIC","C","JAVA"}; int i; for (i=3;i>=0;i--,i--) printf("%c",*p[i]); printf("\n"); return 0; }

A、JVCBSPO

B、JAVA

C、JB

D、JAVABASIC

点击查看答案
第4题
下列程序的输出结果: Sub abc() a = 45 Select Case a Case Is < 10 a = a + 5 Case 10 To 20 a = a + 10 Case Else a = a - 10 End Select Debug.Print a End Sub

A、50

B、35

C、55

D、45

点击查看答案
第5题
有下列程序: #include voidmain() {char*a[]={"abcd","ef","gh","ijk");inti; for(i=0;i<4;i++)printf("%C",*a[i]); } 程序运行后的输出结果是()。

A.aegi

B.dfhk

C.abcd

D.abcdefghijk

点击查看答案
第6题
有如下代码: public class Test{ public static void main(String args[]) { String str = new String("World"); char ch[] = {'H','e','l','l','o'}; change(str,ch); System.out.println(str + "and" + ch); } public static void change(String str, char ch[]) { str = "Changed"; ch[0] = 'C'; } } 运行后输出的结果是:

A、World and Hello

B、World and Cello

C、World and CelloChanged and Hello

D、Changed and Cello

点击查看答案
第7题
下列代码的执行结果是 f=open('writetest.txt','a+') f.write('This is a test file') f.write('Please print this file') print(f.readline()) f.seek(0) print(f.readlines())

A、This is a test file This is a test file Please print this file

B、This is a test filePlease print this file This is a test file Please print this file

C、['This is a test filePlease print this file']

D、This is a test filePlease print this file

点击查看答案
第8题
下面程序的运行结果是_______。 def mul(a=1,b=4,c): return a*b*c print(mul(2,3,2))

A、12

B、4

C、运行出错

D、6

点击查看答案
第9题
char *name[5]定义了一个一维指针数组,它有5个元素,每个元素都是指向字符数据的指针变量。
点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信