-
下面程序的运行结果是______。#include#includevoidmain(){charp1[50]=”abc”,*p2,str[50]=abc
-
下面程序段的运行结果是( )注意输出结果的格式#include void main(){char *p=”abcdefgh”;p+=3;printf(%s\n,p);}
-
下面程序的运行结果是 #include \stdio.h\ int main() { int x=-5; do { printf(\%3d\,x+=2); }while (!(x++)); return 0; }
-
06410141:下面程序的运行结果是()。#include #include int main( ){char x[80]=\AB\, y[80]=\LMNP\;int n=0;strcat(x, y);while (x[n++]!='
-
下面程序的运行结果是______。 #include < stdio.h > #include < string.h > main() { char a[7]=\abcdef\,b[4]=\ABC
-
下面程序的运行结果是include<iostream.h>void main(){int num=1;int &ref=num;ref=ref+2;c
下面程序的运行结果是 include<iostream.h> void main() { int num=1; int &ref=num; ref=ref+2; cout<<num; num=num+3; cout<<ref<<end1; }
A.13
B.16
C.36
D.33
-
下面程序的运行结果为#include<iostream.h>void main( )char a='3';switch(
A.
 
-
下面程序的运行结果是()。 include<iostream.h
A.12 12
B.12 21
C.21 12
D.21 21
-
下面程序的运行结果是include"iostream.h"define sum(a,b)a*bvoid main(){int x;X=sum(1+2,3);
下面程序的运行结果是 include"iostream.h" define sum(a,b)a*b void main() {int x; X=sum(1+2,3); cout<<x; }
A.0
B.9
C.7
D.5
-
下面程序的运行结果是()。include<iostream.h> void main{int num=1:int&ref=num; ref
下面程序的运行结果是()。
include<iostream.h> void main
{
int num=1:
int&ref=num; ref=ref+2:
cout<<num: num=num+3: cout<<ref<<endl:
}
A.13
B.16
C.36
D.33
-
下面程序的运行结果是()。 include define M 3 define N (M+1) define NM N*N/2 void main() { printf("%d,",NM); printf("%d\n",5*NM); }
A.3,6
B.2,89
C.2,5
D.8,40
-
下面程序的运行结果是()。 include<iostream.h> void fun(int *a,int *B. { int x=*a
下面程序的运行结果是()。 include<iostream.h> void fun(int *a,int *B. { int x=*a: *a=*b;*b=X; cout<<*a<<*b<<””: void main { int X=1,Y=2; fun(&x,&y); cout<<x<<Y<<endl; }
A.12 12
B.12 21
C.21 12
D.21 21
-
下面程序的运行结果为()。 include void main { char a=’3’: switch(8) { case 3:cout$amp;A.3
B.321
C.31
D.32
-
写出下面程序执行后的运行结果。 include <stdio.h> define N 2 define M N+1 define N
写出下面程序执行后的运行结果。 include <stdio.h> define N 2 define M N+1 define NUM 2*M+1 int main() { int i; for(i=1;i<=num;i++) printf("%d",i); return 0; }>
-
下面程序段的运行结果是()。 include<stdio.h> void main() {char str[]="ABC",*p=str; pfintf("%d\n",*(p+3)); }
A.67
B.0
C.字符'C'的地址
D.字符'C'
-
下面程序的运行结果是【】。 include<iostream> using namespace std; void fun(int&a,int b=3)
下面程序的运行结果是【 】。
include <iostream>
using namespace std;
void fun(int &a, int b=3)
{
static int i=2;
a = a + b + i;
i = i + a;
}
int main()
{
int x=5, y=2;
fun(x, y);
cout<<x<<",";
fun(x);
cout<<x<<end1;
return 0;
}
-
下面程序的运行结果是include<iostream.h>void main(){int i=1;while(i<=8)if (i%3!=2)cont
下面程序的运行结果是 include<iostream.h> void main() { int i=1; while(i<=8) if (i%3!=2)continue; else cout<<i; }
A.25
B.36
C.258
D.369
-
下面程序的运行结果为()。 include<iostream.h> voidmain() { chara=3: switch(a) {
下面程序的运行结果为()。 include<iostream.h> voidmain() { chara=3: switch(a) { case3:cout<<"3"; case2:cout<<"2";break; default:cout<<"1"; } }
A.3
B.321
C.31
D.32
-
下面程序的运行结果是()。include<stdio.h>main(){int y=10; do{y--;}while(--y); printf("%d\n"
下面程序的运行结果是()。 include<stdio.h> main() { int y=10; do{y--;}while(--y); printf("%d\n",y--); }
A.-1
B.1
C.8
D.0
-
下面程序的运行结果是()。 include<iostream.h> int fun(int a[],int n) { int resuh=1
下面程序的运行结果是()。 include<iostream.h> int fun(int a[],int n) { int resuh=1; for(inl i=1;i<11;1‘++) result=result * a[i]; retum result; } void main int a[3]={3,4,5}: cout<<fun(a,3)<<endl: }
A.12
B.15
C.20
D.60
-
下面程序段的运行结果是 include<iostream.h> void main() {char*s="abcde"; S+=2;
下面程序段的运行结果是 include<iostream.h> void main() { char*s="abcde"; S+=2; cout<<&s;}
A.cde
B.字符'c'
C.字符'c'的地址
D.无确定的输出结果
-
下面程序的运行结果是()。 include define MAx(a,b,c) ((a)>《b)?((a)>(c)?(a):(C)):((b)>(C)? (b)
下面程序的运行结果是()。 include define MAx(a,b,c) ((a)>《b)?((a)>(c)?(a):(C)):((b)>(C)? (b):(C))) void main() { int x,Y,Z; x=1; y=2; z=3; printf("%d,",MAx(x,Y,Z)); printf("%d,",MAx(x+Y,Y,y+x)); printf("%d\n",MAx(x,y+Z,Z)); )
A.3,2,3
B.6,5,7
C.3,1,90
D.3,3,5
-
给出下面程序的运行结果。include<stdio.h>intmain();return0;}
A.6
B.3
C.4
D.5
-
下面程序运行后输出的结果为: include int main(); return 0; }
-
下面程序段的运行结果是__________。 include<stdio.h>main(); t ++ ; } }
A.EXAMPLE!
B.example!
C.EXAM
D.example