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

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

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

A.15

B.8

C.25

D.2


参考答案

更多 “ 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。 struct st { char a[15]; int b; double c; }; printf("%d",sizeof (struct st));A.15B.8C.25D.2 ” 相关考题
考题 若有下列说明和语句,已知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个字节):int i=8,j=9;则下列语句:printf("i=%u,j=%x\n".i,j);输出的结果是( )。A.i=8,j=9B.8.9C.89D.i=8,i=8

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

考题 若有下列说明和语句,已知int型数据占2个字节,则下列语句的输出结果是( )。 struct st { char a[15]; int b; double c; }; printf("%d",sizcof(struct st));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个字节):int i=8;则下列语句:printf("i=%08d",i);输出的结果是( )。A.i=8,B.i=00000008,C.i=08,D.8

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