网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。 struct st { char a[15]; int b; double c; }; printf("%d",sizcof(struct st));

A.15

B.8

C.25

D.2


参考答案

更多 “ 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。 struct st { char a[15]; int b; double c; }; printf("%d",sizcof(struct st));A.15B.8C.25D.2 ” 相关考题
考题 若有下列定义(设int类型变量占2个字节): float x=123.4567; 则下列语句: printf("x=%5.2f",x); 输出的结果是( )。A.x=123.46B.123.4567C.x=123.4567D.123.46

考题 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。stmct st{char a[15];intb;double c;};printf("%d",sizeof(structSt));A.15B.8C.25D.2

考题 若有下列定义(设int类型变量占2个字节): int i=8; 则下列语句: printf("i=%08d",i); 输出的结果是( )。A.i=8,B.i=00000008,C.i=08,D.8

考题 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。stmct st{ char a[15];int b;double c;};printf("%d",sizeof(struct st));A.15B.8C.25D.2

考题 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。 struct st { char a[15]; int b; double c; }; printf("%d",sizeof (struct st));A.15B.8C.25D.2

考题 若有下列定义(设int类型变量占2个字节): float x=123.4567; 则下列语句: printf("x=%5.2f", x); 输出的结果是( )。A.x=123.46B.123.4567C.x=123.4567D.123.46

考题 若有下列定义(设int类型变量占2个字节): int i=8; 则下列语句:. printf("i=%08d",i); 输出的结果是( )。A.i=8,B.i=00000008,C.i=08,D.8

考题 若有下列定义(设int类型变量占2个字节):float x=123.4567;则下列语句:printf("x=%5.2f",x);输出的结果是( )。A.x=123.46B.123.4567C.x=123.4567D.123.46

考题 11、以下说明和语句中,已知int型数据占两个字节,则以下语句的输出结果是 struct st { char a[10]; int b; double c; }; printf("%d", sizeof(struct st));A.0B.8C.20D.2