单项选择题

以下程序运行后的输出结果是
#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=5
<上一题 目录 下一题>
热门 试题

单项选择题
有以下定义和语句: struct workers int num; char name[20]; char c; struct int day; int month; int year; s; ; struct workers w, *pw; pw=&w; 能给w中year成员赋值1980的语句是
A.*pw.year=1980;
B.year=1980;
C.pw->year=1980;
D.s.year=1980;
单项选择题
有以下程序,其中k的初值为八进制数。程序运行后的输出结果是 #include<stdio.h> main() int k=011; printf( %d n , k++);
A.12
B.11
C.10
D.9
相关试题
  • 以下程序的功能是:借助指针变量找出数组元...
  • 以下程序的功能是:删除字符串中所有的空格...
  • 以下程序运行后输入“abcdef”,则输出结果...
  • 以下程序运行后的输出结果是______。...
  • 以下程序运行后的输出结果是______。...