下列程序的运行结果为( )
#include<stdio.h>
main()
{ struc tdate
{int year,month,day;
)today;
printf("%d/n",sizeof(struct date));
}
A.8
B.6
C.10
D.12
[单选题]下列程序的运行结果为 include void main( ) { int a=2; int b=a£«1; cout < < a£¯b下列程序的运行结果为#include<iostream.h>void main( ){int a=2;int b=a+1;cout < < a/b < < endl;}A.0.66667B.0C.0.7D.0.66666666…
[单选题]下列程序的运行结果为()。include main(){stmct date {int year,month,day; }today; pr下列程序的运行结果为( )。 #include <stdio.h> main() { stmct date {int year,month,day; }today; printf("%d/n",sizeof(struct date)); }A.8B.6C.10D.12
[单选题]下列程序的运行结果为()。include void main(){int a=2;int b=a£«1;cou<下列程序的运行结果为( )。 #include<iostream.h> void main() { int a=2; int b=a+1; cou<<afo<<endl; }A.0.66667B.0C.0.7D.0.66666666
[单选题]下列程序的运行结果是()。 include include main() {char*s1="abDuj"; char下列程序的运行结果是( )。#include<stdio.h>#include<string.h>main(){ char*s1="abDuj";char*s2="ABdUG";int t;t=strcmp(s1,s2) ;printf("%d",t);}A.正数B.负数C.零D.不确定的值
[单选题]下列程序的运行结果是( )。 include include main() {char*s1="abDuj";char下列程序的运行结果是( )。 #include<stdio.h> #include<string.h> main() { char*s1="abDuj"; char*s2="ABdUG"; int t; t=strcmp(s1,s2); printf("%d",t); }A.正数B.负数C.零D.不确定的值
[单选题]下列程序的运行结果为include void main( ){ int a=2; int b=a£«l; cout < < a£¯b下列程序的运行结果为 #include < iostream.h > void main( ) { int a=2; int b=a+l; cout < < a/b < < end1; }A.0.66667B.0C.0.7D.0.66666666…
[单选题]下面程序的运行结果为 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 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() {static char a[]="Languagef",b[]="program下列程序的运行结果是( )。#include<stdio.h>main(){ static char a[]="Languagef",b[]="programe";C.har*p1,*p2;int k;p1=a;p2=b;for(k=0;k<=8;k++)if(*(p1+k)==*(p2+k))printf("%c",*(p1+k));}A