有以下程序#include "stdio.h"main(){ struct date {int year,month,day;}today; printf("%d\n",sizeof(struct date));}程序的运行结果是A.6 B.8C.12 D.10
第1题:
下列程序的运行结果为( )。 #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
第2题:
有以下程序: Class Date {public: Date(int y,int m,int d); {year=y; month=m; day=d;} Date(int y=2000) {year=y; month=10; day=1;) Date(Date &D) {year=d.year; month=d.month; day=d.day;} void print() {cout<<year<<“.”<<mo
A.2
B.3
C.4
D.5
第3题:
以下程序的运行结果是( )。 #include <stdio.h> main() { st,uct date {int year,month,day;}today; printf("%d\n",sizeof(struct date)); }
A.6
B.8
C.10
D.12
第4题:
下列程序的运行结果为( )。 #include<stdio.h> main() { struct date {int year,month,day; }today; printf("%d\n",sizeof(struct date)); }
A.8
B.6
C.10
D.12
第5题:
以下程序的运行结果是 #include"stdio.h" main() { struct date { int year,month,day;}today; printf("%d\n",sizeof(struct date));}
A.6
B.8
C.10
D.12