阅读下面的,写出运行结果。includemain(){char *str="ABCabcd";bubble();printf();}bubble()char *str;int count;{int i,j=count;char tmp;while()for()if(str[i] {tmp=str[i];str[i]=str[i+1];str[i+1]=tmp;}}
相似题目
-
阅读下面的程序,写出运行结果。()https://assets.asklib.com/images/image2/2017122714444672746.jpg
-
阅读下列程序,说明本程序功能并写出运行结果。 MOV AL,00H;设置计数初值 AGAIN:OUT 80H,AL;输出到端口 CALL DELAY;调用延时子程序 INC AL;计数值递增 JMP AGAIN;返回,再次输出 DELAY:MOV CX,10;设置延时时间常数 DEALY1:LOOP DELAY1;循环,实现延时 RET;延时子程序返回
-
有以下程序#includemain(){ int a=5,b=1,t;t=(a<<2|b); printf(“%d ”,t)}程序运行后的输出结果是
-
有以下程序#includemain(){ char a=4;printf(%d , a=a<<1);}程序的运行结果是( )。
-
阅读下列程序写出程序的运行结果。#includevoidmain(){inti,j,m,n;i=8;j=10;m=++i;n=j++;printf(“%d,%d,%d,%d”,i,j,m,n);}
-
阅读程序写出结果:#include int fun(double a,double b);void main( ){ 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; }
-
当运行以下程序时,从键盘输入1 2 3 4 5 -1,则下面程序的运行结果是 。#includemain(){int k=0,n;do{scanf(\%d\,&n);k+=n;}while(n!=-1);printf(\k=%d n=%d\\n\,k,n);}
-
有以下程序#includemain(){char *s=“ABC”;Do{printf(“%d”,*s%10);s++;}while(*s);}注意,字母A的ASCII码值为65。程序运行后的输出结果是()
-
阅读下面的程序class StringDemo{public static void main(String[] args){String s1 = “a”;String s2 = “b”;show(s1,s2);System.out.println(s1+s2);}public static void show(String s1,String s2){s1 = s1 +”q”;s2 = s2 + s1;}}下列选项中,程序的运行结果是()
-
读下面的:includevoid main(){static int a[]={1,2,3,4,5};int *p=a;printf();printf();}写出运行的结果、
-
【其它】程序分析: 阅读下面的程序,分析代码是否能够编译通过,如果能编译通过,请列出运行的结果。否则请说明编译失败的原因。 public class Test { public static void main(String args[]) { int n = 9; while (n > 6) { System.out.println(n); n--; } } }
-
阅读下面的程序,分析代码是否能够编译通过,如果能编译通过,请列出运行的结果并分析出现此结果的原因。否则请说明编译失败的原因。public class Example { public static void changeStr(); }}
-
[程序阅读题]写出以下程序段的输出结果();
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
-
请阅读下面的代码intx=1;inty=2;if(x%2==0){y++;}else{y--;}Console.WriteLine("y="+y);}上面一段程序运行结束时,变量y的值为下列哪一项?()
-
请先阅读下面的代码。intx=1;inty=2;if(x82==0){y++;)else{y--;}System.out.println(y=+y);上面一段程序运行结束时,变量y的值为下列哪一项()
-
(4-1)请阅读程序,然后写出程序运行结果。publicclassDemo7{publicstaticvoidmain(String[]args){int[]arr=newint[5];intsum=0;Arrays.fill(arr,3);for(intx:arr){sum=sum+x;}System.out.println(sum);}}
-
【简答题】分析下面的程序,写出程序的运行结果。 include <stdio.h> int main() { char c1='a',c2='b',c3='c',c4='110',c5; c5=c4+1; printf("a%c b%c c%ctabcn",c1,c2,c3); printf("%c %cn",c4,c5); return 0; }
-
阅读下面的代码,输出结果是()
-
以下程序的运行结果是()。includemain(){ int i=5,j=6,m=i+++j; printf(“%d,%d,%d”,i,j,m);}
-
请阅读下面的程序,选择正确的运行结果。()classDemo{undefinedprivatestaticintx;publicstaticvoidmain(String[]args){undefinedSystem.out.println(x++);}}
-
以下的运行结果是 。includemain(){ printf());}fun(){ int t;if()||())t=3;else t=n*fun();return t; }
-
阅读下面的程序include<stdio.h>voidmain{inti,j;i=010;//第一个’0’表八进制j=9;printf(%d,%d,i-j,i+j);}则程序的运行结果是()
推荐题目
- 柔性支架
- 普希金的政治抒情诗名篇主要有()。
- 行政看管的一般时间和最长时间各为天?()
- 1在下列哪些情况下舵的背流面容易出现空泡现象?() Ⅰ.使用大舵角时Ⅱ.船舶高速前进时Ⅲ.舵的前端曲率大时Ⅳ.舵的背面吸入空气时
- 垂直角观测安置仪器同水平角一样,都需要()
- 第259题:对地质条件复杂的灌注桩桩身检验的抽检数量不应少于总数的(), 且不应少于20根。
- 新型农村社会养老保险实行相结合()
- 强国挑战答题答案:我们常称风韵犹存的中年妇女为“半老徐娘”,这个“徐娘”原是指一位()。
- Whtevermount you decided to ______, be certin tht the money will be put to good use.exchngeBWhtevermount you decided to ______, be certin tht the money will be put to good use.exchnge B.clculte C.
- 离心泵的类型有那些?