填空题

有以下程序:
main()
char str[]="xyz", *ps=str;
while(* ps)ps++;
for(ps--; ps-str>=0;ps--)puts(ps);

执行后的输出结果是 【3】 。

【参考答案】

z yz Xyz
<上一题 目录 下一题>
热门 试题

问答题
有以下程序: # define N 20 fun(int a[], int n, int m) int i, j; for(i=m; i>=n; i--)a[i+1]=a[i]; main() int i, a[N]=1, 2, 3, 4, 5, 6, 7, 8, 9, 10; fun(a, 2, 9); for(i=0; i<5; i++)printf( % d , a[i]); 程序运行后的输出结果是______。
单项选择题
执行下列程序时输入:123<空格>456<空格>789<回车>,输出结果是______。 mein() char s[100]; int c, i; scanf( % c , &C) ; scanf( % d , &i); scanf( % s , s); printf( % c, % d, % s n , c, i, s);
A.123, 456, 789
B.1, 456, 789
C.1, 23, 456, 789
D.1, 23, 456
相关试题
  • 有一种攻击是针对网络低层协议而不是针对某...
  • 以下程序中给指针p分配3个double型动态内...
  • 以下程序运行后的输出结果是 【14】 。...
  • 以下程序中,for循环体执行的次数是 【1...
  • 有以下程序: # define f(x)x*x ma...