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

题目内容 (请给出正确答案)
单选题
sizeof(float)是()。
A

一个双精度表达式

B

一个整型表达式

C

一种函数调用

D

一个不合法的表达式


参考答案

参考解析
解析: 暂无解析
更多 “单选题sizeof(float)是()。A 一个双精度表达式B 一个整型表达式C 一种函数调用D 一个不合法的表达式” 相关考题
考题 sizeof(float)是A.一个双精度型表达式B.一个整型表达式C.一种函数调用D.一个不合法的表达式

考题 已知有变量datal定义如下: union data { int i; char ch; float f; }datal; 则变量datal所占的内存存储空间可表示为(57)。A.sizeof(int)B.sizeof(char)C.sizeof(float)D.SiZCOf(mt)+sizeof(char)+sizeof(float)

考题 已知: union { int i; char c; float a; }st;则sizeof(st)的值是______。A.4B.5C.6D.7

考题 ● 已知有变量 data1 定义如下:union data{ int i;char ch;float f;} data1;则变量 data1 所占的内存存储空间可表示为 (57) 。(57)A. sizeof(int)B. sizeof(char)C. sizeof(float)D. sizeof(int)+sizeof(char)+sizeof(float)

考题 若定义了以下函数: void f(……) { …… *p=(double *)malloc(10 * sizeof(double)); …… } p是该函数的形参,要求通过p把动态分配存储单元的地址传回主调函数,则形参p的正确定义应当是( )A.double *pB.float **pC.double **pD.float *p

考题 在C++中,下列程序段的输出结果是【 】。int x, a[10];cout<<sizeof(x)<<“”<<sizeof(a)<<“”<<sizeof(float)<<end1

考题 下面程序和运行运行结果是【 】。typedef union student{ char name [10];long sno;char sex;float score [4];} STU;main ( ){ STU a[5];prinff( "% d\n", sizeof(a) );}

考题 有以下程序#include "stdio.h"main(){ struct date { int number; float fenzhi; char name; }stu; printf("%d\n",sizeof(stu));} 程序的运行结果是A.3 B.5C.7 D.8

考题 以下程序的输出结果是【】。 include main() {struct stru {int a; float b; char d[4]; } 以下程序的输出结果是【 】。include<stdio.h>main(){ struct stru{ int a;float b;char d[4];};printf("%d\n",sizeof(struct stru));}

考题 设有结构体类型定义: struct try { int one; float two; }*str;若要动态开辟一个结构单元,使指针str指向其首地址,正确的语句是______。A.str=(try*)malloc(sizeof(try));B.*str=(struct try*)malloc(sizeof(struct try));C.str=(strucy try*)malloc(sizeof(struct try));D.str=(struc try)malloc(sizeof(struct try));

考题 sizeof(float)是( )。A.一种函数调用B.一种函数定义C.一个浮点表达式D.一个整型表达式

考题 有以下定义和语句,则sizeof(a) 的值是【 】,而sizeof(a,share)的值是【 】struct date{ int day;int mouth;int year;union{int share1;float share2;}share;}a;

考题 有以下定义和语句,则sizeof(a.share)的值是( )。struct date{ unsigned int day;unsigned int mouth;unsigned int year;union{int share1;float share2;}share;}a;

考题 下面程序的运行结果是typedef union student{ char name[10]; long sno; char sex; float score[4];}STU;main(){ STU a[5]; printf("%d\n",sizeof(a));}

考题 有以下程序includevoid fun(float* p1,int n1,float,*p2,int n2,float* s){ int i;s=( 有以下程序 #include<stdio.h> void fun(float * p1,int n1,float,*p2,int n2,float * s) { int i; s=(float *)calloc(1,sizeof(float)); *s=0; for(i=0;i<n1;i++) *s+=*p1++; for(i=0;i<n2;i++) *s+=*p2++; } main() { float a[2]={1.1,2.2},b[3]={10.0,20.0,30.0),*s=a; fun(a,2,b,3,s); printf("%f\n",*s); } 上面程序的输出结果是( )A.60B.3.3C.63.3D.1.1

考题 经下列语句定义后,sizeof(x)、sizeof(y)、sizeof(a)、sizeof(b)在IBM-PC机上的值分别为______。char x=65;float y=7.3;int a=100;double b=4.5;A.2,2,2,4B.1,2,2,4C.1,4,2,8D.2,4,2,8

考题 若有下面的说明和定义: struct test { char m2; float m3; union uu{ char u1[5]; float u2; }ua; }MyStruct; 则sizeof(MyStruct)的值是( )。A.10B.11C.12D.9

考题 变量W_data定义如下:union data_node{float ff'int n;char ch;}W_data;则变量W_data所占的内存存储空间可表示为______。A.sizeof(int) B.sizeof(char) C.sizeof(float) D.sizeof(int)+sizeof(char)+sizeof(float)

考题 以下程序段的输出结果是()。      struct node         {int a;  float b;  char c[10];}  printf(“%d”,sizeof(struet node)) ;

考题 在下列选项中,全部都是C++关键字的选项为()A、while IF StaticB、break char goC、sizeof case externD、switch float integer

考题 在VC++6.0环境下,sizeof(int)和sizeof(float)的值分别为()A、2,2B、2,4C、4,4D、4,8

考题 sizeof(float)是()。A、一个双精度表达式B、一个整型表达式C、一种函数调用D、一个不合法的表达式

考题 请读程序: #include void fun(float *pl, float *p2, float *s) { s=( float * )calloc( 1, sizeof(float)); *s=*p1+ *(p2++); } main( ) { float a[2]={1.1, 2.2}, b[2]={10.0, 20.0}, *s=a; fun(a, b, s) printf(""%f/n"",*s); } 上面程序的输出结果是()A、11.100000B、12.100000C、21.100000D、1.100000

考题 请读程序:#includevoidfun(float*pl,float*p2,float*s){s=(float*)calloc(1,sizeof(float));*s=*p1+*(p2++);}main(){floata[2]={1.1,2.2},b[2]={10.0,20.0},*s=a;fun(a,b,s)printf(""%f/n"",*s);}上面程序的输出结果是()A、11.100000B、12.100000C、21.100000D、1.100000

考题 单选题有以下程序#include main(){ char *p1 = 0;  int *p2 = 0; float *p3 = 0; printf(%d,%d,%d, sizeof(p1), sizeof(p2), sizeof(p3));}程序运行后的输出结果是(  )。A 4,4,4B 1,4,8C 0,0,0D 1,2,4

考题 填空题以下程序段的输出结果是()。      struct node         {int a;  float b;  char c[10];}  printf(“%d”,sizeof(struet node)) ;

考题 单选题有如下定义:struct st{ int a; float b;}x[10];FILE *fp;若文件已正确打开,且数组x的10个元素均已赋值,以下将数组元素写到文件中的语句错误的是(  )。A for(i=0; i10; i++) fwrite(x,sizeof(struct st), 1,fp);B fwrite(x,10*sizeof(struct st), 1,fp);C fwrite(x,sizeof(struct st), 10,fp);D for(i=0; i10; i++) fwrite(x[i],sizeof(struct st), 1,fp);