单项选择题

有以下程序:
#include<stdio.h>
main()
int i,j,m=1;
for(i=1;i<3;i++)
for(j=3;j>0;j--)
if(i*j>3)break;
m*=i+j;

printf("m=%d\n",m);
程序运行后的输出结果是( )。

A.m=6
B.m=2
C.m=4
D.m=3
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: #include<stdio.h> main() FILE*fp;char str[10]; fp=fopen( myfile,dat , ); fputs( abc ,ip);fclose(fp); fp=fopen( myfile.dat , a* ); fprintf(fp, %d ,28); rewind(fp); fscanf(fp, %s ,str);puts(str); fclose(fp); 程序运行后的输出结果是( )。
A.abc
B.28c
C.abc28
D.内类型不一致而出错
单项选择题
有以下程序: #include<stdio.h> #define N 8 void fun(int*x,int i) *x=*(x+i); main() int a[N]=1,2,3,4,5,6,7,8),i; fun(a,2); for(i=0;i<N 2;i++) printf( %d ,a[i]); print*r(” n”); 程序运行后的输出结果是( )。
A.1313
B.2234
C.3234
D.1234
相关试题
  • 以下程序的功能是:借助指针变量找出数组元...
  • 以下程序用以删除字符串中所有的空格,请填...
  • 以下程序的功能是:将值为三位正整数的变量...
  • 有以下程序: #include<stdio.h> #i...
  • 有以下程序: #include<stdio.h> mai...