有程序:main(){int a=5,b=1,c=0;if (a=b+c) printf(\***\\n\);else printf(\$$$\\n\);}该程序 。
相似题目
-
有以下程序,程序运行后的输出结果是 _________ 。 #include void main() { 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); }
-
如有以下程序:int main(){int a=5,b=-3,c=4;printf(%d%d\n,(++a,b++),c-2);return 0;}
-
请阅读以下程序: void main( ) { int a= 5, b= 0, c = 0; if ( a = b+c) cout << ″***\n″; else cout<< ″$$$\n″; } 以上程序_____。
-
有以下程序:main( ){ int a=2,b=1,c=2;if(a-b<0) c++;printf(c=%d\n,c);}程序的输出结果是( )。
-
#includevoid fun(int a, int b){ int t;t=a; a=b; b=t;}main(){ int c[10]={1,2,3,4,5,6,7,8,9,0}, i;for(i=0; i<10; i+=2) fun(c[i], c[i+1]);for(i=0; i<10; i++) printf(\%d,\, c[i]);printf(\\);}程序的运行结果是
-
有以下程序 #include void main() { int a=0,b=0,c=0,d=0; if(a=1) b=1;c=2; else d=3; printf('%d,%d,%d,%d',a,b,c,d); } 以下选项正确的是_______。
-
下列程序的输出结果是( ) int fun(int a,int b,int c) { c=a*b; return c;} int main() { int c=5; fun(2,3,c); printf(“%d”,c); return 0; }
-
有以下程序 #include void fun(int a, int b) { int t; t=a; a=b; b=t; } main() { int c[10]={1,2,3,4,5,6,7,8,9,0), i; for (i=0; i<10; i+=2) fun(c[i], c[i+l]); for (i=0; i<10; i++) printf(\%d,\, c[i]); printf(\\\n\); } 程序的运行结果是( )。
-
若有以下程序 #include main() { int a=0,b=0,c=0,d; c= (a+=b,, b+=a); /*第4行*/ d=c;; /*第5行*/ ; /*第6行*/ ;printf(\%d,%d,%d\\n\,a,b,c); /*第7行*/ }
-
若有以下程序#include main(){ int a=0,b=0,c=0,d;c= (a+=b,, b+=a); /*第4行*/d=c;; /*第5行*/; /*第6行*/;printf(\%d,%d,%d\\n\,a,b,c); /*第7行*/}编译时出现错误,你认为出错的是( )。
-
以下程序的输出结果是( ) int main() { int a=1,b=3,c=5,d=4,x; if(a
-
以下程序的运行结果是( )#includeint main(){int a=-5,b=1,c=1;int x=0,y=2,z=0;if(c>0)x=x+y;if(a<=0){if(b>0)if(c<=0)y=x-y;}else if(c>0)y=x-y;elsez=y;printf(\%d,%d,%d\,x,y,z);return 0;}
-
以下程序的正确运行结果是( )。 #include int f(int a) { int b=0; static int c=5; b++; c++; return(a+b+c); } int main( ) { int a=2,i; for(i=0;i<2;i++) printf(\%4d\,f(a)); }
-
以下程序的输出结果是()。 main() { int a=4,b=5,c=0,d; d=!a&&!b||!c; printf("%d&
-
有下列程序 main() { int t, a=1, b=5, c=-2; while(a>b>c) { t=a; a=b; b=t; c++;} printf("%d, %d, %d", a, b, c); } 程序输出的结果是()。
-
下列程序的输出结果是()。 struct abc { int a, b, C; ); main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=S[0].a+S[1].b; printf("%d\n",t); }
-
有以下程序:main(){int a=3,b=4,c=5,d=2;if(a>b)if(b>c)printf("%d",d+++ 1);elseprintf("%d",++
-
5. 以下程序段运行的输出结果是() include <stdio.h> int main() { int a=1,b=2,c=3,d=4; printf("%d",a<b?a:c<d?c:d); return 0; }
-
执行下面的程序后,输出的结果是 struct abc {int a,b,c;} main() {struct abc s[2]={{1,2,3},{4,5,6}};int t; t=s[0].a+s[1].b;printf("%d\n",t); }()
-
有以下程序:includ<stdio.h>voifun(ina,inb)int;t=a;a=b;b=t;}main()inc[10]={1,2,3,4,5,6,7,8,9,0},i;for(i=0;i<10;i+=2)fun(c[i],c[i+1]);for(i=0;i<10;i++)printf("%d,",c[i]);printf("&qu
-
若有以下程序 include <stdio.h> int main() { int a = 0, b = 0, c = 0, d; c = (a += b,,b += a); /*第5行*/ d = c;; /*第6行*/ ; /*第7行*/ ;printf("%d, %d, %d\n", a, b,c); /*第8行*/ return 0; } 编译时出现错误,你认为出错的是()
-
有以下程序:includeint main(){ int a, b, c[10] = { 0,1,2,3,4,5,6,7,8,9 }; for (a = 0; a<10; ++a) { for (b = 0; b<5 – a; ++b){ if (c[b] < c[b+1]) { c[b] += c[b + 1]; c[b + 1] -= c[b]; c[b] += c[b +
-
有以下程序段include<stdio.h>int main(){int a = 5 , *b , **c ;c= &b ; b = &a ;return 0 ;}程序在执行了c = &b ; b = &a ; 语句后,表达式**c的值是________
-
2、下列程序的输出结果是 struct abc {int a,b,c; }; main() { struct abc s[2]={{1,2,3},{2,5,7}}; t=s[0].a+s[1].b; printf("%d\n",t); }
推荐题目
- 服用头孢菌素类抗生素期间不能饮酒,否则会引起药源性急症,甚至危及生命。医学上称之为双硫仑样反应或戒酒硫样反应。
- 最大风速下建立在管理速度引导和自动推力的Ⅲ类盲降,自动进近。取证的FMGS限制值是:().
- 对于每段航班都具有两张机票和登机牌的旅客,按两人计数。
- (),又称不可争条款。在订立人寿保险合同时,投保人对被保险人有关身体健康的情况以及其他会影响保险人决定是否承保及保险费率高低的有关情况,都应依法据实告知,不得有任何隐瞒或欺骗。
- 庇隆的正义党提出的口号包括()。
- Some people call their residence “ 草堂 ” (cao tang) or “ 草庐 ” (cao lu) to convey a sense of returning to nature as in _______.
- 含有()属性的文件不能被修改
- 公平的看待一件事需要突破自我的立场和固定的时空带来的局限性。()
- 车轮摆动量:滚动轴承不超过(2mm):圆锥滚柱轴承不超过()。
- 4、Linux/UINX系统中top命令的作用是