下列程序的输出结果是(). main() { printf("%d/n",null); }
第1题:
下列程序执行的输出结果是( )。 #inClUde<stdio.h> main() { char a[2][4]; strcpy(a,"are");strcpy(a[1],"you"); a[0][3]='&'; printf("%s\n",a); }
A.are&you
B.you
C.are
D.&
第2题:
下列程序的输出结果是( )
#include<stdio.h>
main()
{int a=3,b=2,c=1;
if(a<b)
if(b<0) c=0;
else c++;
printf("%d\n",c);
}
A.0
B.2
C.1
D.3
第3题:
下面程序的输出结果是【 】。
define MIN(a,b) (((a)<(b))?a:b)
include <iostream.h>
void main()
{
int x= 3, y=5;
cout<< MIN(x,y)<<end1;
}
第4题:
以下程序的输出结果是( )。
main()
{int a=0;
a+=(a=8);
printf("%d\n",a);}
第5题:
下述程序的输出结果是( )。 #include<stdio.h> void main() {char a=3,b=1; char c=a^b<<2; printf("%d",C; }
A.1
B.7
C.3
D.2
第6题:
下列程序的输出结果是( )。 #include< iostream.h> void main() {double d=3.2; intx, y: x=1.2; y=(x+3.8)/5.0 cout<<y*d <<endl;}
A.3
B.3.2
C.0
D.3.07
第7题:
下列程序的输出结果是( )。
#include<stdio.h>
VOid p(int *x)
{ printf("%d",++*x);
}
void main()
{ int y=3;
p(&y);
}
A.3
B.4
C.2
D.5
第8题:
下列程序的输出结果是( )。 #include<stdio.h> int b=2; int func(int*A){ b+=*a;return b;} main() { int a=1,t=2; t+=func(&a); printf("%d\n",t); }
A.4
B.5
C.6
D.8
第9题:
下列程序执行后的输出结果是
#included<string.h>
main( )
{ char arr[2][4];
strcpy(arr,"you");strepy(arr[1],"me");
arr[0][3]='&';
cout<<arr<<endl;
}
A.you&me
B.you
C.me
D.err
第10题:
以下程序的输出结果是【 】。
include<iostream.h>
void main( )
}
int a=0;
a+=(a=8) ;
cout<<a;
}