【多选题】【消耗次数:1】
如果输入的是5,以下程序运行结果不正确的是() #include #define M n+n void main( ) { int n; int result; printf(请输入一个整数:); scanf(%d, result=M*M; printf(result = %d\n,result); }
100
35
25
50
参考答案:
复制
纠错
相关题目
【单选题】 以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
【单选题】 以下程序的运行结果是: main() {int m=5; if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
【简答题】 计算两个整数n和m(m1000)之间所有数的和。n和m从键盘输入。例如,当n=1,m=100时,sum=5050,当n=100,m=1000时,sum=495550。 #include#includemain() { int n,m; int sum; /************found************/[填空1] printf(\nInput n,m\n scanf(%d,%d,n, while( n=m ) { /************found************/[填空2] n++; } printf(sum=%d \n,sum); }
【单选题】 输入10,该程序的运行效果是() #include void main() { int a=15,b=25; intp= intq= q=p; printf(%d ,%d\n,*p,*q); }
①  15,15
②  15,25
③  25,15
④  25,25
【单选题】 下面程序的输出是 int fun3(int x) {static int a=3; a+=x; return(a); } void main() {int k=2,m=1,n; n=fun3(k); n=fun3(m); printf(%d\n }
①  3
②  4
③  6
④  9
【单选题】 以下程序的输出结果是() int a, b; void fun( ) { a=100; b=200; } main( ) { int a=100, b=100; fun( ); printf(%d%d \n, a,b); }
①  100200
②  100100
③  200100
④  200200
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【单选题】 下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①  12345678
②  124689
③  12457810
④  1234456
【单选题】 下面程序的输出结果是()。 #include int num=10; func( ) {int num=4; return ++num; } void main( ) { printf(%d\n, func( ) ) ; }
①  4
②  5
③  10
④  11
随机题目
【单选题】 下列哪项不属于社会主义发展道路多样性的原因
①  各国的生产力发展状况不同
②  各国所处的发展阶段不同
③  各国的社会制度不同
④  历史文化传统的差异
【单选题】 当代资本主义发生的新变化并没有改变资本主义制度的本质,其根本原因在于
①  没有克服资本主义的基本矛盾
②  没有爆发社会革命
③  没有扩大工人的民主权利
④  没有彻底消灭私有制
【单选题】 对待马克思主义的唯一正确态度是
①  敢于否定科学社会主义的基本原则
②  用相对主义的标准去衡量
③  在坚持中发展,在发展中坚持
④  坚决捍卫马克思的所有论断
【单选题】 9. Traditional Chinese food is far______to McDonald’s and KFC or anyotherfastfoods I know.
①  immune
②  superior
③  essential
④  similar
【单选题】 My camera can be _____ to take pictures in cloudy or sunny conditions.
①  adapted
②  adapt
③  regulate
④  coordinate
【单选题】 3. We cannot get an answeryet, for_______to that prob1em is stil1 underdiscussion.
①  action
②  strategy
③  solution
④  impact
【单选题】 4.Scientists didn’t know much about lung cancer ______.
①  before long
②  until recently
③  long before
④  in the past few years
【单选题】 1.Gates open at 10.30am and _______ is free.
①  admission
②  admit
③  admitting
④  admitted
【单选题】 4. The body can’t storevitamin C. So it is_________ to have a fresh supply every day.
①  essential
②  visible
③  ultimate
④  profound
【单选题】 8.Do you have any idea what he meant? I really can’t ______ what he said at this morning’s meeting.
①  figure on
②  figure out
③  find out
④  find