网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序的执行结果是() main( ) { int a, b, *p = &a, *q = &b; a = 10; b = 20; *p = b; *q = a; printf(“a = %d, b = %d/n”, a, b);
参考答案
更多 “以下程序的执行结果是() main( ) { int a, b, *p = a, *q = b; a = 10; b = 20; *p = b; *q = a; printf(“a = %d, b = %d/n”, a, b);” 相关考题
考题
以下程序的执行结果是【】。 include define PI____3.14159 const int R=10; void main()
以下程序的执行结果是【 】。include<iostream>define PI____3.14159const int R=10;void main(){double a,b;ac2*R*PI;b=R*R*PI;cout<<"a="<<a<<","<<"b="<<b<<endl;"}
考题
以下程序的执行结果是______ includevoid func(int); void main(){ int k=4 func(k)
以下程序的执行结果是______include<iostream.h>void func(int);void main(){int k=4func(k) ;func(k) :cout<<end1;}void func(int a){static int m=0;m+=a;cout<<m<<" ";}
考题
以下程序的输出结果是【】。 include void main( ) } int a=0; a+=(a=8); cout
以下程序的输出结果是【 】。include<iostream.h>void main( )}int a=0;a+=(a=8) ;cout<<a;}
考题
设有以下程序:main(){int i,sum=0;for(i=2;i<10;i++){ if((i%2)==0)continue;sum+=i;}printf("%d\n",sum);}程序执行后的输出结果是( )。
考题
执行下列程序的结果是( )。 include void main() { char *str; str
执行下列程序的结果是( )。 #include<iostream.h> void main() { char *str; str="test!"; cout<<str[5]; }A.test!B.testC.空字符D.异常
考题
以下程序的执行结果是【】。 include include void pnnt(int n) { if (n!=0
以下程序的执行结果是【 】。include<iostream.h>include<iomanip.h>void pnnt(int n){if (n!=0){Print(n-1);for (int i=1;i<=n;i++)cout<<setw(3)<<i;cout<<endl;}}void main(){print(4);}
考题
执行以下程序的输出结果是( )。 includedefine M 5define N M+M main(){int k; k=N*N*5;
执行以下程序的输出结果是( )。include<stdio.h>define M 5define N M+Mmain(){ int k;k=N*N*5;printf(”%d\n" ,k);}
考题
以下程序的输出结果是【】。includevoid main() {int *p;p=new int;*p=200;cout
以下程序的输出结果是【 】。include<iostream. h>void main() {int *p;p=new int;*p=200;cout<<*p;delete p;}
考题
以下程序的执行结果是 ______。 include void main() { int a=o,b=1,c=0,d=20; if (a
以下程序的执行结果是 ______。include<iostream.h>void main(){int a=o,b=1,c=0,d=20;if (a) d=d-10;else if(! b)if(!c) d=15;else d = 25;cout<<"d="<< d << endl;}
考题
有以下程序 include main( ) { printf("%d\n",NULL); } 程序运行后的输出结果是
有以下程序#include <stdio.h>main( ){ printf("%d\n",NULL); }程序运行后的输出结果是A.0B.1C.-1D.NULL没定义,出错
考题
下面程序的执行结果是【】。 include include using namespace std; void main(
下面程序的执行结果是【 】。include<iostream>include<iomanip>using namespace std;void main(){cout<<setfill('x')<<setw(10);cout<<"Hello"<<endl;}
考题
下列程序执行的输出结果是()。 include main() {char a[2][4];strcpy(a,"are");strcpy(
下列程序执行的输出结果是( )。 #include<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a [1],"you"); a[0][3]=''; printf("%s\n",a); }A.areyouB.youC.areD.
考题
若有以下程序: include using namespace std; int main() {char str[10];cin>>str;co
若有以下程序:include <iostream>using namespace std;int main(){char str[10];cin>>str;cout<< str<<end1;return 0;}当输入为:This is a program!那么执行程序后的输出结果是【 】。
考题
有以下程序,程序执行后,输出结果是【】include void fun(int*A) {a[0]=a[1];} main() {i
有以下程序,程序执行后,输出结果是【 】include<stdio.h>void fun(int*A){ a[0]=a[1];}main(){ int a[10]={10,9,8,7,6,5,4,3,2,1,},i;for(i=2;i>1=0;i-) fun(a[i]);for(i=0;i<10;i++) printf("%d,a[i]);printf("\n");}
考题
以下程序的执行结果是 ______。 include int max(int x,int y) { ret
以下程序的执行结果是 ______。include<iostream.h>int max(int x,int y){return(x>y? x:y);}void main(){int n=2,m=10;max(n,m)--;cout<<"n="<<n<<",m="<<m<<endl;}
考题
若有以下程序main(){ int p=5,a=5; if(p=1!=0) printf("%d\n",p); else printf("%d\n",p+2);}程序执行后的输出结果是
考题
若有以下程序:includeusing namespace std;int main(){ int a=3; cout
若有以下程序: #include <iostream> using namespace std; int main() { int a=3; cout<<(a+=a-=a+A) <<end1; return 0; } 程序执行后的输出结果是( )。A.-6B.12C.0D.-12
考题
执行下列程序时输入12345678,程序的运行结果是______。 include main() { int x,y; sca
执行下列程序时输入12345678,程序的运行结果是______。 #include<stdio.h> main() { int x,y; scanf("%2d%2d"); printf("%d\n",x+y); }A.17B.46C.15D.9
考题
有以下程序:includo main(){int y=10; while(y--)printf("y=%d\n",y);} 程序执行后的
有以下程序: #includo <stdio.h> main() { int y=10; while(y--)printf("y=%d\n",y); } 程序执行后的输出结果是( )。A.y=0B.y= -1C.y=1D.while 构成无限循环
考题
有以下程序:includeincludeusxng namespace std;int main(){ char p[] = "a
有以下程序: #include <iostream> #include <string> usxng namespace std; int main() { char p[] = "abcdefgh"; cout<<strlen(strcpy(p,"12345"))<<end1; return 0; } 执行后输出的结果是( )。A.8B.12C.5D.7
考题
执行以下程序时输入1234567,则输出结果是【 】。 includemain(){int a=1,b; scanf("%2
执行以下程序时输入1234567<CR>,则输出结果是【 】。include <stdio.h>main(){ int a=1,b;scanf("%2d%2d",a,b); prinff("%d %dhn",a,b);}
考题
有以下程序: #include void main() {while(putchar(getchar())!=’?’);} 当输入"hello?"时,程序的执行结果是()A、helloB、dijobC、dijob?D、hello?
考题
填空题以下程序的执行结果是() main( ) { int a, b, *p = a, *q = b; a = 10; b = 20; *p = b; *q = a; printf(“a = %d, b = %d/n”, a, b);
热门标签
最新试卷