下面的程序运行后输出为( )。 #include <stdio.h> # include <math.h> main() { int a,b; float c; b = 5;c = 6;c = b+7;b = c+1; a = sqrt((double)b+c); printf("%d,%f,%d",a+6,C,b); }
A.11.000000,12.0000000,13.000000
B.11.000000,12.000000,13
C.11.0000000,12,13
D.11,12.000000,13
[单选题]下面程序的运行结果是 ( ) include include main( ) { char * a="下面程序的运行结果是 ( ) # include<stdio.h> # include<string.h> main( ) { char * a="AbcdEf",* b="aBcD" a + +;b + +; printf("%d/n",strcmp(a,b)); }A.0B.负数C.正数D.无确定值
[单选题]下面程序的输出结果为______。 include main() { char p1[7]="abc",p2[]="ABC",str[50下面程序的输出结果为______。 #include<string.h> main() { char p1[7]="abc",p2[]="ABC",str[50]="xyz"; strcpy(str,strcat(p1,p2)); printf("%s",str); }A.xyzabcABCB.abcABCC.xyzabcD.xyzAB
[单选题]下面程序运行时输出结果为______。 include include class Rect { public: Rect(int下面程序运行时输出结果为______。include<iostream.h>includeclass Rect{public:Rect(int l, int w){length=l; width=w;)void Print(){cout<<"Area:"<<length*width<<end1;}void operator delete(void*p){free(
[主观题]下面程序的输出结果为______ include void main() {cout<<"Hello/b"; }下面程序的输出结果为______include<iostream.h>void main(){cout<<"Hello/b";}
[单选题]下面程序的运行结果为 include void main( ) { for(int a =0,x=0;!x&&a<=下面程序的运行结果为#include<iostream.h>void main( ){for(int a =0,x=0;!x&&a<=10;a++){a++;}cout < < a < < endl;}A.10B.11C.12D.0
[单选题]下面程序的运行结果为 include void main( ) {char a='3'; switch(a) { case'3':下面程序的运行结果为#include<iostream.h>void main( ){char a='3';switch(a){case'3':cout < <"3";case'2':cout < < "2";break;default:cout < <"1";}}A.3B.321C.31D.32
[主观题]以下程序运行后的输出结果是()。 include void main() { char a[]="abcdabcabfgacd";以下程序运行后的输出结果是[ ]。include<iostream.h>void main(){char a[]="abcdabcabfgacd";int i 1=0,i2=0,i=0;while (a[i]){if (a[i]=='a')il++;if (a[i]=='b')i2++;i++;}cout<<il<<' '<<i2<<endl;}
[单选题]下列程序运行后,输出结果是______。 include include fun(char *w ,int下列程序运行后,输出结果是______。 #include <stdio. h> #include <string. h> fun (char *w ,int n) { char t,*s1,*s2; s1=w; s2=w+n-1; while (s1<s2) { t=*s1++; *s1=*s2--; *s2=t; } } main () { char *p; p="1234567
[单选题]下面程序的输出结果是 include includevoid main( ) { char p1[10] ,p2下面程序的输出结果是#include<iostream.h>#include<string.h>void main( ){char p1[10] ,p2[10] ;strcpy(p1,"abc") ;strcpy(p2,"ABC") ;char str[50] ="xyz";strcpy(str+2,strcat(p1,p2) ) ;cout < < str;}A.xyza
[单选题]下列程序的输出结果是()。 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