[单选题]

下列程序的运行结果是()。 include main(){int x=5,a=1,b=2,C=5,d=0;if(a

下列程序的运行结果是( )。

#include<stdio.h>

main()

{int x=5,a=1,b=2,C=5,d=0;

if(a<B)

if(b!=3)

if(!C)

x=1;

else

if(D) x=1;

else x=-1;

printf("%d",x);

}

A.-1

B.0

C.1

D.不确定的值

参考答案与解析:

相关试题

下列程序的运行结果是() #include main() {int x=5,a=

[单选题]下列程序的运行结果是() include main() {int x=5,a=1,b=2,c=5,d=0; if(a

  • 查看答案
  • 下列程序的运行结果是()#include main(){int a=2,c=5;

    [单选题]下列程序的运行结果是()#include main(){int a=2,c=5;printf("a=%d,b=%d/n",a,c);}A . a=%2,b=%5B . a=2,b=5C . a=d,b=dD . a=%d,b=5d

  • 查看答案
  • 以下程序段的运行结果是( )。 include main() {int x=2,

    [主观题]以下程序段的运行结果是( )。 include main() {int x=2,y=1: switch(x) {case 1: switch以下程序段的运行结果是( )。 include<stdio.h> main() {int x=2,y=1: switch(x) {case 1: switch(y) {case 0:printf("x=2,y=1/n");break; case 1:printf("y=1/n");break; } case 2:printf("x=2/n");

  • 查看答案
  • 下列程序的运行结果是()。 #include main() {int a=0,b

    [单选题]下列程序的运行结果是()。 include main() {int a=0,b=4,c=0,d=10,x; if(a) d=d£­10; e1下列程序的运行结果是( )。#include<stdiO.h>main(){ int a=0,b=4,c=0,d=10,x;if(a)d=d-10;e1seif(!B)if(!C)x=15;elsex=25;printf("%d/n",D) ;}A.5B.3C.20D.10

  • 查看答案
  • 下列程序的运行结果是()。 #include main() {int a=2,b

    [单选题]下列程序的运行结果是()。 include main() {int a=2,b=3,c=4;ifa

  • 查看答案
  • 以下程序的运行结果是() # include main() { int a=01

    [单选题]以下程序的运行结果是() include main() { int a=015,b=22; printf("%d,%d/n",a以下程序的运行结果是 ( ) # include<stdio.h> main( ) { int a=015,b=22; printf("%d,%d/n",a+ +,- -b); }A.15,22B.15,21C.13,21D.14,21

  • 查看答案
  • 下列程序的运行结果是()。#include main(){int a=2,b=3

    [单选题]下列程序的运行结果是()。include main(){int a=2,b=3,c=4; if(a

  • 查看答案
  • 下面程序的运行结果是 #include Void main( ) { int n

    [单选题]下面程序的运行结果是 include Void main( ) { int num=1; int &ref=num;ref=下面程序的运行结果是#include<iostream.h>Void main( ){int num=1;int &ref=num;ref=ref+2;cout < < num;num=num+3;cout < < ref < <endl;}A.13B.16C.36D.33

  • 查看答案
  • 下面程序的运行结果是 #include void main( ) { int i

    [单选题]下面程序的运行结果是 include void main( ) { int i=1; while(i <=8) if(£«£«i%3!下面程序的运行结果是#include<iostream.h>void main( ){int i=1;while(i <=8)if(++i%3!=2) continue;else cout < < i;}A.25B.36C.258D.369

  • 查看答案
  • 下列程序的运行结果是()。 #include #include main() {

    [单选题]下列程序的运行结果是()。 include include main() {char*s1="abDuj"; char下列程序的运行结果是( )。#include<stdio.h>#include<string.h>main(){ char*s1="abDuj";char*s2="ABdUG";int t;t=strcmp(s1,s2) ;printf("%d",t);}A.正数B.负数C.零D.不确定的值

  • 查看答案