下列程序的输出结果为( )。 #include<iostream.h> #include<iomanip.h> voidmain() { cout.precision(4); cout<<123.127; cout<<””<<123.46: }
A.123.1 123.4
B.123.1 123.46
C.123.127 123.46
D.123.1123.4
[单选题]以下程序输出结果为()#includevoidmain(){int i,b,k=0;for(i=1;i=0)k++;}printf("%d,%d/n",k,b);}A . 3,-1B . 6,-1C . 3,0D . 6,-2
[单选题]以下程序段的输出结果是 ______。includevoidmain() { int x[]二{9,7,5,3,1),y=0,j,以下程序段的输出结果是 ______。 #include<iostream.h> void main() { int x[]二{9,7,5,3,1),y=0,j,*p=&x[2]; for(j=0;i<3;j++) y+=*(p+j); cout<<y; }A.7B.8C.9D.10
[单选题]下面程序的输出结果是 ______。includevoidmain(){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 20B.20 20C.1 1D.出错
[单选题]下列程序的输出结果为#includevoid main(){char,a[]={”hello",”the",”world”};char**pa=a:pa++;cout<<*pa<}A.helloB.theC.worldD.hellotheworld
[单选题]下列程序的输出结果为 include void main( ) { char * a[ ] ={"hello},"the"," wo下列程序的输出结果为#include<iostream.h>void main( ){char * a[ ] ={"hello},"the"," world"};char * * pa=a;pa++;cout < < * pa < < endl;}A.helloB.theC.worldD.hellotheworld
[单选题]下列程序段的输出结果为( )。 include main() { static char a[]="language"; char *p;下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char *p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }A.languageB.lnugC.有语法错误D.lang
[单选题]下列程序的输出结果为()。includeincludevoid main(){cout.precision(4下列程序的输出结果为( )。 #include<iostream.h> #include<iomanip.h> void main() { cout.precision(4); cout<<123.127 cout<<" "<<123.46; }A.123.1 123.4B.123.1 123.46C.123.127 123.46D.123.1123.4
[单选题]下列程序的输出结果是()。 include include main() {char a[]="/n123//"; p下列程序的输出结果是( )。#include<stdio.h>#include<string.h>main(){ char a[]="/n123//";printf("%d,%d/n",strlen(A) ,sizeof(A) );}A.5,6B.5,5C.6,6D.6,5
[单选题]下列程序的输出结果是______。 include include using namespace std; voi下列程序的输出结果是______。include<iostream.h>include<string.h>using namespace std;void fun(const char*s,char &C) {c=s[strlen(s)/2];}int main(){char str[]="ABCDE";char ch=str[1];fun(str,ch);cout<<
[单选题]下列程序的输出结果是()。 include include main() {char a[]="/n123//";pr下列程序的输出结果是( )。 #include<stdio.h> #include<string.h> main() { char a[]="/n123//"; printf ("%d,%d/n",strlen(a),sizeof(a)); }A.5,6B.5,5C.6,6D.6,5