阅读程序选结果 。 #include main() { int i, temp; int a[5] = { 9,6,5,2,1 }; for (i = 0; i<5 / 2; i++) { temp = a[i]; a[i] = a[5-i-1]; a[5-i-1] = temp; } for (i=0; i<5; i++) printf(\%d\, a[i]); }
相似题目
-
以下程序的输出结果是( )。#include #include main(){ char *p=abcde\0fghjik\0
-
阅读下列程序段 , 则程序的输出结果为( )。 #include stdio.h #define M(X,Y)(X)*(Y) #define N(X,Y)(X)/(Y) main() { int a=5,b=6,c=8,k; k=N(M(a,b),c); printf(%d\n,k); }
-
读程序写结果#include#includevoid main( ){cout
-
阅读程序写出结果:#include int fun(double a,double b);void main( ){ cout<
-
阅读程序写出结果#include int add(int x,int y=8);void main( ){ int a=4;cout<
-
阅读下列程序,写出运行结果 ________ 。 #include struct ty{ int data;charc;}; fun(struct ty b) { b.data =200; b.c='y'; } int main() { struct ty a={100,'x'}; fun(a); printf(\%d,%c\\n\,a.data,a.c); return 0; }
-
如果在下面程序运行时输入123456,程序的运行结果是【 】。 include<stdio.h>int main(); }
-
阅读下面程序段,则执行后的结果为include "stdio.h"main(){ int m=4,n=2,k;k=fun(m,n);printf("%d\n",k);}fun(int m,int n){ return(m*m*m-n*n*n);}
-
阅读下面程序,则执行后的结果是 include"stdio.h" main() { char str[]="tomeetme",*p; for(p=str;p<str+7;p+=2)putchar(*p); printf("\n");}
-
include<stdio.h>main(); } 程序运行后的输出结果是
-
阅读下面的程序:include<iostream.h>void main(){int x;cin>>x;if(x++>5)cout<<x<<end1;elsecou
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
-
运行程序,程序输出结果是(). include <iostream> using namespace std; int main() { ch
-
(专基)阅读下面程序如果执行程序后输入的值是1 2 3 4 5 则结果是()#include "stdio.h"void main(){int arr【5】,i,sum=0; for(i=0;i<5;i++){scanf("%d",&arr【i】); } for(i=0;i<5;i++){sum=sum+arr【i】;}printf("sum=%d",sum);}
-
阅读下面程序,则执行后的结果是include"stdio.h"main(){ char str[]="tomeetme",*p;for(p=str;p
-
请阅读以下程序:include <stdio.h> main() {float a,b; scanf("%f",&a); if(a<0.0) b="0.0;" else printf("%f\n",b); }>,则上面程序的输出结果是 。
-
阅读以下程序,当输入数据的形式为:1,2,3,正确的输出结果为 。 include “stdio.h” void main(){ int x,y,z; scanf(“%d%d%d”, &x,&y,&z); printf(“%d+y+z=%d”,x,x+y+z); }
-
下面程序运行后输出的结果为: include int main(); return 0; }
-
阅读以下程序,其运行结果是______。 include <stdio.h> int main() { int i; for(i='a';i<'f';i++,i++) printf("%c",i-'a'+'A'); printf("n"); return 0; }
-
以下程序若运行时输入ABC,则输出结果是______。 include include void main(); }
-
1、阅读程序,给出程序的执行结果。 include<stdio.h> int Square(int i) { return i*i; } int main(void) { int i=0; i=Square(i ); for(;i < 3; i++) { static int i=1; i +=Square(i ); printf("%d,", i ); } printf("%d", i) return 0; }
-
1.阅读以下程序,当输入数据的形式为:25,13,10<CR>,正确的输出结果为 。 include "stdio.h" void main() { int x,y,z; scanf("%d%d%d", &x,&y,&z); printf("x+y+z=%dn",x+y+z); }
-
阅读程序,并按给定的输出各式将程序运行结果写在“运行结果”之后 include<stdio.h> int main() { int a,b,c; a=(b=(c=3)*5)*5; printf(“a=%d,b=%d,c=%dn”,a,b,c); } 运行结果是:()
-
阅读以下程序,写出程序的输出结果________ include <stdio.h> struct VALUE { int x; char c; }; void func(struct VALUE b) { b.x -= 100; b.c+= 4; } int main() { struct VALUE a ={100,'A'}; func(a); printf("%d %cn",a.x,a.c); return 0; }
推荐题目
- 一般纳税人提供财政部和国家税务总局规定的特定应税服务,可以选择适用()计税,但一经选择,()内不得变更。
- 患者男性,45岁,右下腹痛伴畏寒、高热3天,3天后始出现右上腹胀痛。查体:T39.7℃,肝大,右上腹触痛伴肌紧张,右下腹压痛及反跳痛。WBC18.2×109/L,N87.4%。X线透视:右膈肌抬高,运动受限。99mTc-HMPAO-WBC显像示右下腹放射性局灶性异常浓聚,肝内可见多发局灶性放射性分布异常浓聚影。99mTc-HMPAO-WBC显像右下腹放射性局灶性浓聚影,为进一步排除肠道非特异性浓聚的影响,影像采集完成时间最好是()
- 支柱型号H38/87+26,其中87表示()。
- 站用交流电源系统可研初设审查验收标准卡中,对站用交流电源柜配置有哪些验收内容?
- 《社会保险法》规定,社会保险基金按照()设立预算。
- 常用的电子调速器的作用是()
- 目标市场营销中的每个消费者群就是()。
- 营业部门对收回的国内邮政回执按()寄退寄件人。
- 容量分析的类型是()。
- 合同成立的要件主要有()