下面代码的输出结果是()。 for a in ["torch","soap","bath"]: print(a)
A.torch,soap,bath
B.torch soap bath,
C.torch,soap,bath,
D.torch soap bath
A.torch,soap,bath
B.torch soap bath,
C.torch,soap,bath,
D.torch soap bath
第1题
已知在ASCⅡ代码中,字母A的序号为65,以下程序输出的结果是______。
#include<stdio.h>
main()
{char c1='A',c2='Y';
printf("%d,%d\n",c1,c2);
}
第2题
下面程序段的输出结果是______。
#include<stdio.h>
int b=1:
int func(int *a)
{*a+=b;return(*a);)
main()
{int a=2,res=1;
res+=func(&a);
prf("%d%d\n",a,res);}
第3题
下面程序的输出结果是______。
#include<stdio. h>
main()
{static char b[]="Hello! world! ";
char *chp=&b[6];
while(--chp>=&b[0])putchar (*chp);
putchar('\n');
}
第4题
若下面程序的输出结果是4,请填空。 main() { int i,j,k; k = 0 ; i = j =【 】; k+=-(i+j);printf("%d\n",k); }
第5题
若有宏定义:#define MOD(x,y)x%y
则执行下面语句后的输出结果是
int a=13,b=96;
printf("%d\n",MOD(b,a));()
A.1
B.2
C.5
D.6
第6题
A.*#**#**#
B.**#**#*
C.*#**#**
D.**#**
第7题
若输入3个整数3,2,1<回车>则下面程序的输出结果是
#include<stdio.h>
main()
{int i,n,aa[10]={0,0,0,0,0,0};
scanf("%d%d%d",&n,&aa[0],&aa[1]);
for(i=0;i<=n;i++)
printf("%d",aa[i]);
}
第8题
A.0
B.1
C.2
D.4
第9题
A.1
B.2
C.5
D.7
第10题
A.输出val is NULL
B.输出val is not NULL
C.语法错误
D.运行时出现异常
第11题
A.-1
B.Exception
C.1
D.0