填空题

以下程序的输出结果是______。
#include<stdio.h>
main()
int n=12345, d;
while(n!=0)d=n% 10; printf("%d", d); n/=10;

【参考答案】

54321
<上一题 目录 下一题>
热门 试题

填空题
以下fun函数的功能是找出具有N个元素的一维数组中的最小值,并作为函数值返回。请填空。(设N已定义) int fun(int x[N]) int i, k=0; for(i=0; i<N; i++) if(x[i]<x[k])k=______; return x[k];
填空题
以下程序运行后的输出结果是______。 #include <stdio.h> #include <stdlib.h> #include <string.h> main() char *p; int i; p=(char*)malloc(sizeof(char)* 20); strcpy(p, welcome ); for(i=6; i>=0; i--)putchar(*(p+i)); printf( n ); free(p);
相关试题
  • 以下程序用来判断指定文件是否能正常打开。...
  • 以下程序的输出结果是______。 #in...
  • 设有定义 struct int a; float b; ...
  • 以下程序运行后的输出结果是______。...