填空题
有以下程序: main() {char str[]="xyz", *ps=str; while(* ps)ps++; for(ps--; ps-str>=0;ps--)puts(ps); } 执行后的输出结果是
【3】
。
【参考答案】
z yz Xyz
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
A
点击查看答案&解析
单项选择题
有以下程序: int a=2; int f(int n) { static int a=3; int t=0; if(n % 2)(static int a=4; t+=a++;} else{static int a=5; t+=a++;} return t+a++; } matin() { int s=a, i; for(i=0; i<3; i++)s+=f(i); printf( % d n , s); } 程序运行后的输出结果是______。
A.26
B.28
C.29
D.24
点击查看答案&解析
相关试题
有一种攻击是针对网络低层协议而不是针对某...
以下程序运行后的输出结果是 【14】 。...
以下程序中给指针p分配3个double型动态内...
有以下程序:# define f(x)x*xmain(...
以下程序中,for循环体执行的次数是 【1...