我想知道那是什么意思"The actual size of the data types depends on the implementation."

I wanted to know what that means"The actual size of the data types depends on the implementation."

"The actual size of the data types depends on the implementation." 以上是关于编程语言中的数据类型,我想知道那是什么意思。

"size of the data type"是指使用多少字节的内存来表示该类型的对象。

"Implementation" 在此上下文中指的是语言的实现。 "implementation" 由许多部分组成,包括编译器、工具链的其余部分(如链接器和汇编器)、标准库和操作系统(在具有此类功能的系统上)和底层 CPU 架构。

这句话的意思是数据类型的大小在不同的语言实现中可能不同。举个实际例子,long int数据类型在windows上x86_64CPU架构上使用MSVC编译器实现的C++语言的大小是4个字节,而Linux 中相同 CPU 架构上相同类型的大小为 8 个字节。