这里我的确需要告诉计算机,“给我一些字节内存,来存储一个值,那个值将是,浮点型的数值。”
Here I actually need to tell the computer, "Give me some bytes in ram in which to store a value, and that value's going to be a floating point value."
根据操作数是字节 (byte)、字 (word) 还是长型 (long),指令的后缀可以是 b、w 或 l。
The instructions are suffixed by b, w, or l, depending on whether the operand is a byte, word, or long.
类型和int类型都占四个字节。,A,float,is,4,bytes,,as,is,an,int。,那一个int型的呢,由于它占4个字节,那是32位。
float And an int is interesting because with 4 bytes, you get 32 bits.
Here I actually need to tell the computer, "Give me some bytes in ram in which to store a value, and that value's going to be a floating point value."
这里我的确需要告诉计算机,“给我一些字节内存,来存储一个值,那个值将是,浮点型的数值“
This is convention, so on almost-- and most any computer you overuse, if you're writing code that uses a char, you're gonna be handed 8 bits or 1 byte to store that particular char.
这是约定,对于大多数-,电脑,当你写代码要用到一个char型数据时,必须先预留8比特或1字节,的空间来存储这个char型数据。
So a char size is 1 byte or 8 bits.
一个char型数据占据1字节或8比特。
应用推荐