一个ascii字符是8个字节,转换后的字如何存储在32个字节中
由于 Ascii 是 8 个字节,因此转换后的字将存储为 4 ,4 ,4 ,4, 4, 4, 4 ,4 或者我只是填充零,我认为我不会在转换后的单词中遇到问题,因为单词的大小将是 32bytes > 8 个字节
这是我收集的:在逻辑移位中,空位置用 0 填充。如果将一个字移动 32 位或更多位,它将包含全 0。
你怎么认为 ?我认为我是对的,因为这只是逻辑转变
Since Ascii is 8 bytes the converted word would be stored by 4 ,4 ,4 ,4, 4, 4, 4 ,4
or would i just padd zero's, i dont think i would have an issue fitting in the converted word since the size for the word would be 32bytes > 8 bytes
This is what i gathered : In a logical shift, the empty positions are filled with 0's. If you shift a word 32 or more bits, it will contain all 0's.
What do you think ? i think im right since all it would be is logical shift
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Ascii 字符不是 8 个字节,而是 8 位。我怀疑你的机器字是32字节。除此之外我不确定你在问什么。
Ascii characters are not 8 bytes, they are 8 bits. And I doubt your machine word is 32 bytes. Other than that I'm not sure what you're asking.