单项选择题

有以下程序
#include <stdio.h>
main()
int i,j,m=55;
for(i=1;i<=3;i++)
for(j=3;j<=i;j++)m=m%j;
printf("%d\n",m);

程序的运行结果是

A) 0
B) 1
C) 2
D) 3
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include<stdio.h> #include<string.h> void fun(char*s[],int n) char*t;int i,j; for(i=0;i<n-1;i++) for(j=i+1;j<n;j++) if(strlen(s[i])>strlen(s[j]))t=s[i];s[i]=s[j];s[j]=t; main() Char*ss[]= bcc , bbcc , xy , aaaacc , aabcc ; fun(ss,5);printf( %s,%s n ,ss[0],ss[4]); 程序的运行结果是______。
A) xy,aaaacc
B) aaaacc,xy
C) bcc,aabcc
D) aabcc,bcc
单项选择题
有以下程序: # include<stdio.h> main() char c1='1',c2='2'; c1=getchar();c2=getchar();putchar(c1);putchar(c2); 当运行时输入:a<回车>后,以下叙述正确的是 ______。
A) 变量c1被赋予字符a,c2被赋予回车符
B) 程序将等待用户输入2个字符
C) 变量c1被赋予字符a,c2中仍是原有字符2
D) 变量c1被赋予字符a,c2中将无确定值
相关试题
  • 有以下程序: float f1(float n) re...
  • 以下程序的输出结果是______。 #in...
  • #define命令出现在程序中函数的外面,宏名...
  • 以下程序运行后的输出结果是 。 # incl...
  • 请将下列程序中的函数声明语句补充完整。 ...