网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

语句if (4/5 > 3/4) a=1; else a=0; 运行后,a的值是


参考答案和解析
1
更多 “语句if (4/5 > 3/4) a=1; else a=0; 运行后,a的值是” 相关考题
考题 ( 7 )有以下程序#include stdio.hmain (){ int a=1,b=2,c=3,d=0;if ( a==1 )if ( b!=2 )if ( c==3 ) d=1;else d=2;else if ( c!=3 ) d=3;else d=4;else d=5;printf ( " %d\n " ,d ) ;}程序运行后的输出结果是 【 7 】 。

考题 intx=3;if(1=2)if(0)x=4;elsex=5;elsex=6;执行上述语句后x的值是(). A.3B.4C.5D.6

考题 假定所有变量均已正确说明,下列程序段运行后x的值是( )。a=b=c=0;x=12;if(!a)x--;else x=5;if(C) x=3;else x=4;A.11B.4C.12D.3

考题 a的值为3时,下列程序段被执行后,c的值是( )。 int c=1; if (a<0) if (a<3) c=2; else c=3; else c=4;A.1B.2C.3D.4

考题 在执行inta[][3]={{1,2},{3,4}};语句后,a[1][2]的值是()A.2B.4C.3D.0

考题 假定所有变量已正确说明,下列程序段运行后,x的值是 ( ) a=b=c=0;x=35; if (! a) x- -; else if (b); if (c) x=3; else x=4;A.34B.4C.35D.3

考题 当a=1,b=3,c=5,d=4时,执行下面一段程序后,x的值为______。if (ad) x=1;else if(a 当a=1,b=3,c=5,d=4时,执行下面一段程序后,x的值为______。if (a<6) if(c>d) x=1; else if(a<c) if (b>l) x=2; else x=3; else x=6; else x=7;A.1B.2C.3D.6

考题 假定所有变量均已正确说明,下列程序段运行后x的值是 ( ) a=b=c=0;x=35; if(! a)x--; eles if(b); if(c) x=3; else x=4;A.34B.4C.35D.3

考题 若a的值为3时,下列程序段被执行后,c的值是 ( ) int c=1; if(a>0) if(a>3) c=2; else c=3; else c=4;A.1B.2C.3D.4

考题 当a=4,b=5,c=7,d=6时,执行下面一段程序: if(a<B)if(c<D)x=1; else if(a<C)if(b<C)x=2: else x=3; else x=4; else x=5; 程序执行后,x的值为( )。A.1B.2C.3D.4

考题 若a的值为3时,下列程序段被执行后,c的值是______。 int c=l; if (a>0) if (a>3) c=2; else c=3; else c=4;A.1B.2C.3D.4

考题 下列程序的运行结果是()。includemain(){int a=2,b=3,c=4; if(a 下列程序的运行结果是( )。 #include<stdio.h> main() { int a=2,b=3,c=4; if(a<B) if(b<0) c=0; else c+=1; printf("%d\n",C) ; }A.2B.3C.5D.4

考题 若有定义:inta[5]={1,2,3,4,5};则语句a[1]=a[2]+a[2+2]-a[3-1];运行后a[1]的值为() A.6B.5C.1D.2

考题 语句a=(3/4)+3%2;运行后,a的值为() A.0B.1C.2D.3

考题 语句讧(3/4>1/2)a=1;else a=0;运行后,a的值是(22)。A.1B.0C.与机器有关D.语法有错

考题 设有如下函数定义int fun(int k){if(k1) return 0:else if(k==1) return 1:else return fun(k一1)+1:}若执行调用语句:n=fun(3);,则函数fun总共被调用的次数是A.2B.3C.4D.5

考题 假定所有变量均已正确说明,下列程序段运行后x的值是 a=d=c=0;x=35; if(! a) x=-1, else if(b) ; if(c) x=3; else x=4;A.34B.4C.35D.3

考题 设int i=10,j=11,k=12,x=0;执行语句: if(i>5) if(j>100) if(k>11) X=3; else x=4; else x=5; 后x的值是( )。A.0B.3C.4D.5

考题 若a的值为3时,下列程序段被执行后,c的值是 int c = 1; if (a0) if (a3) c = 2; else c = 3; else c = 4;A.1B.2C.3D.4

考题 假定所有变量均已正确定义,下列程序段运行后X的值是( ) a=b=c=0; x=35; if(!a)x--; else if(b);if(c)x=3;else x=4;A.34B.4C.35D.3

考题 语句if 3*4=10 then a=1 else a=2 执行后,a的值为()。A12B10C1D6

考题 语句a=(3/4)+3%2;运行后,a的值为()A、0B、1C、2D、3

考题 语句if 3*4=10 then a=1 else a=2 执行后,a的值为()。A、12B、10C、1D、6

考题 若a的值为3时,下列程序段被执行后,c的值是多少?() if ( a0 )  if ( a3 ) c = 2; else c = 3; else c = 4;A、1B、2C、3D、4

考题 if(A=2){cnt=1;}else{cnt=0;},若A的值是0,执行完该语句后cnt的值是()。

考题 单选题语句a=(3/4)+3%2;运行后,a的值为()A 0B 1C 2D 3

考题 单选题若a的值为3时,下列程序段被执行后,c的值是多少?() if ( a0 )  if ( a3 ) c = 2; else c = 3; else c = 4;A 1B 2C 3D 4

考题 单选题语句if 3*4=10 then a=1 else a=2 执行后,a的值为()。A 12B 10C 1D 6