下面程序的输出结果是 ______。include<iostream.h>voidmain(){intx=20;int&y=x;cout<<(x==y
下面程序的输出结果是 ______。 include<iostream.h> void main(){ int x=20; int &y=x; cout<<(x==y)<<“”; cout<<(&x==&y)<<end1: }
A.20 20 20 20
B.20 20
C.1 1
D.出错
时间:2023-10-05 15:06:03
相似题目
-
下面程序的运行结果是______。#include#includevoidmain(){charp1[50]=”abc”,*p2,str[50]=abc
-
下面程序的输出结果是______。 #include void main() { int n=9; while(n > 6){n--; printf(%d,n);} }
-
有以下程序,其中 %u 表示按无符号整数输出,程序运行后的输出结果是 ______ 。 #include main() { unsigned int x=0xFFFF; printf(%u\n,x); }
-
以下程序运行后输出的结果是________。 #include main() { int k=011; printf(%d\nk++); }
-
有以下程序: #include void main() { char a[][10] = {'Morning', 'Afternoon', 'Evening', 'Night'}; printf('%s',a[1]); } 程序运行后的输出结果是__________。
-
有以下程序 #include void main() { int y=10; while(y--); printf('y=%d',y); } 程序执行后的输出结果是_______。
-
有以下程序,其中%u表示按无符号整数输出,程序运行后的输出结果是______。#include < stdio.h> main(){ unsigned int x=0xFFFF; printf(\%u \,x); }
-
下面程序的运行结果是______。 #include < stdio.h > #include < string.h > main() { char a[7]=\abcdef\,b[4]=\ABC
-
下列程序的输出结果是______。include <stdio.h>main(){ int i=1,j=3; printf("%d,",i++); {int
下列程序的输出结果是______。include <stdio.h>main (){ int i=1,j=3; printf("%d,",i++); { int i=0; i+=j*2; printf("%d,%d,",i,j); } printf("%d,%d\n",i,j);}
A.1,6,3,1,3
B.1,6,3,2,3
C.1,6,3,6,3
D.1,7,3,2,3
-
下面程序的输出结果是_______。 include<stdio.h> main() { char*p[]={"DOOL","OPK","H","SP"}; int i; for (i=3;i>=0;i-,i-) printf("%c",*p[i]); printf("\n"); }
A.SO
B.SP
C.SPOPK
D.SHOB
-
下列程序的输出结果是______。 include<stdio.h> main() { int a=2,b=-1,C=2;
下列程序的输出结果是______。 include<stdio.h> main() { int a=2,b=-1,C=2; if(a<B) if(b<O)c=0; else c++; printf("%d\n",C) ; }
-
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
A.2,0
B.1,4
C.2,1
D.0,3
-
以下程序的输出结果是________。include<stdio.h>mam(){inta,b,d=241;a=d/100%9;b=(-1)&&
以下程序的输出结果是________。 include<stdio.h> mam() { inta,b,d=241; a=d/100%9; b=(-1)&&(-1); printf("%d,%d\n",a,B) ; }
A.6,1
B.2,1
C.6,0
D.2,0
-
阅读以下程序,写出程序运行后的输出结果是 ______。include<iostream.h>void main(){char a[]={'
阅读以下程序,写出程序运行后的输出结果是 ______。 include<iostream.h> void main(){ char a[]={'H','e','1','1','o','\0'}; int i,j; i=sizeof(a)/sizeof(char); j=strlen(a) cout<<i<<‘ ’<<j;
A.6 6
B.5 6
C.1 5
D.6 5
-
以下程序的输出结果是 ______。include<iostream.h>void main() {char w[][10]={ "ABC", "DEFGH"
以下程序的输出结果是 ______。 include<iostream.h> void main() { char w[][10]={ "ABC", "DEFGH", "IJKL" , "MNOP" }; int k; for (k=1 ;k<3 ;k++) cout<<w[k]<< " " }
A.ABC FGH KL
B.ABC EFG IJ M
C.EFG JK 0
D.DEFGH IJKL
-
下列程序的输出结果是______。 include<stdio.h> main(); }
-
以下程序的输出结果是______。include<stdio.h>main(){int a=200;define a 100printf("%d",a) ;
以下程序的输出结果是______。 include<stdio.h> main() { int a=200; define a 100 printf("%d",a) ; undefa printf("%d",a) ; }
A.200 100
B.100 100
C.100 200
D.200 200
-
以下程序的输出结果是 ______。include<iostream.h>void main(){ inti,j;for(j=10;j<=11;j++){fo
以下程序的输出结果是 ______。 include<iostream.h> void main(){ int i,j; for(j=10;j<=11;j++){ for(i=9;i<j:j++) if(!(j%i))break; if(i>j-1)cout<<j<<" " ; } }
A.11
B.10
C.10 11
D.9
-
输入c2470f ? <回车> 后,下列程序的输出结果是________。 include "stdio.h" int main()
输入c2470f ? <回车> 后,下列程序的输出结果是________。 include "stdio.h" int main() { char ch; long number=0; while((ch=getchar())<’0’||ch>’6’) ; while(ch!=’?’&&ch>=’0’&&ch<=’6’) { number="number*7+ch﹣’0’;" printf("%ld",number); ch="getchar();" } return 0;>
-
以下程序运行后的输出结果是 ______。 include <stdio.h> struct NODE { int k; char s[20
以下程序运行后的输出结果是 ______。 include <stdio.h> struct NODE { int k; char s[20]; }; int main() { struct NODE m[3]; int i; for(i=0;i<3;i++) m[i].k="i+1;" for(i="0;i&lt;3;i++)" printf("%d ",m[i].k); return 0; }>
-
已知在ASCⅡ代码中,字母A的序号为65,以下程序输出的结果是______。include<stdio.h>main(); }
-
以下程序若运行时输入ABC,则输出结果是______。 include include void main(); }
A.ABC6789
B.ABC67
C.12345ABC6
D.ABC45678
-
下面程序段的运行结果是__________。 include<stdio.h>main(); t ++ ; } }
A.EXAMPLE!
B.example!
C.EXAM
D.example
-
12、下面程序的功能是将字符数组中存放的字符串以多种书写形式输出,如“Program”,“PROGRAM”,以及逆序输出的字符串“margorp”等,程序的运行结果为: Program PROGRAM margorp 按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。 include <stdio.h> include <string.h> int main(void) { int i = 0; char b[] = "program"; char *a = "PROGRAM"; printf("_____\n", *a, b + 1); /* 输出Program */ while (_________________) /* 输出PROGRAM */ { ___________; i++; } printf("\n"); while (_____) /* 输出mar
A.第8行: %c%s 第9行: *(a+i)!='\0' 第11行: putchar(*(a + i)) 第15行: --i 第17行: *(b + i) 第19行: putchar (*(b + i))
B.第8行: %s%s 第9行: (*a+i)!='\0' 第11行: putchar(*a + i)) 第15行: i-- 第17行: *(b + i) 第19行: putchar (*(b + i))
C.第8行: %c%s 第9行: *(a+i)=='\0' 第11行: putchar(*(a + i)) 第15行: --i 第17行: *b + i 第19行: putchar (*b + i))
D.第8行: %s%s 第9行: (*a+i)=='\0' 第11行: putchar(*a + i)) 第15行: i-- 第17行: *b + i 第19行: putchar (*b + i)