下列程序的运行结果为( )。 #include <stdio.h> main() { stmct date {int year,month,day; }today; printf("%d/n",sizeof(struct date)); }
A.8
B.6
C.10
D.12
[单选题]下列程序的运行结果是()。 include main() {stmct date {int year,month,day; }today;下列程序的运行结果是( )。#include<stdio.h>main(){stmct date{int year,month,day;}today;primf("%d/n",sizeof(struct date));}A.8B.6C.10D.12
[单选题]下列程序的输出结果是()。 include main() {stmct st {int y,x,z; }; union {long i; i下列程序的输出结果是( )。#include<stdio.h>main(){ stmct st{ int y,x,z;};union{ long i;int j;char k;}un;printf("%d,%d/n",sizeof(stmct st),sizeof(un));}A.6,2B.6,4C.8,4D.8,6
[单选题]下列程序的运行结果为() include main() {struc tdate {int year,month,day; )today;下列程序的运行结果为( )#include<stdio.h>main(){ struc tdate{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; 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 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( ) {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( ) { 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