go top

sizeof
美 ['saɪzɛf]

  • n. (C/C++ 语言中)求数据类型或表达式所占内存大小(以字节为单位)的单目运算符(关键字)

网络释义英英释义

  运算符

运算符(sizeof), 此释义来源于网络辞典。

基于212个网页-相关网页

  大小

...类的大小(sizeof): 1.为类的非静态成员数据的类型大小之和. 2.有编译器额外加入的成员变量的大小,用来支持语言的某些特性(如:指向虚函数...

基于152个网页-相关网页

短语

sizeof struct 结构大小

sizeof f 计算表达式或数据类型的字节数

sizeof operator sizeof运算符

Sizeof

  • abstract: In the programming languages C and C++, the unary operator sizeof is used to calculate the size of any datatype, measured in the number of bytes required to represent the type. A byte in this context is the same as an unsigned char, and may be larger than 8 bits, although that is uncommon.

以上来源于: WordNet

同近义词

双语例句原声例句

  • The 64-bit return value from sizeof in the following statement is truncated to 32-bits when assigned to bufferSize.

    在下面这条语句中,在对 bufferSize 进行赋值时,从 sizeof 返回的 64 位值被截断成了 32 位。

    youdao

  • This request asks for sizeof(data) bytes of data copied from the address in main memory denoted by argp to be copied into the object data.

    这个请求会要求将 sizeof(data) 字节的数据从 argp 所指向的主存地址处拷贝到 data 对象中。

    youdao

  • This structure has the useful property that if you allocate space for (sizeof(struct header) + 10) bytes, you can treat data as being an array of 10 bytes.

    这种结构体的有用之处在于,如果您分配 (sizeof(struct header) + 10) 字节的空间,您可以像处理一个 10 字节的数组一样来处理数据。

    youdao

更多双语例句

百科

sizeof

在 Pascal 语言中,sizeof() 是一种内存容量度量函数,功能是返回一个变量或者类型的大小(以字节为单位);在 C 语言中,sizeof() 是一个判断数据类型或者表达式长度的运算符。 在Pascal 语言与C语言中,对 sizeof() 的处理都是在编译阶段进行。

详细内容

以上来源于: 百度百科
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定