1字节可以存储多少个字符? [英] How many characters can you store with 1 byte?

查看:1491
本文介绍了1字节可以存储多少个字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1 byte = 8 bits 

平均1个字节只能容纳一个字符?例如:

So, does this mean 1 byte can only hold one character? E.g.:

"16" uses 2 bytes , "9" uses 1 byte , "a" uses 1 byte, "b" uses 1 byte 

,如果 tiny int 范围是0-255,这是否意味着它可以存储255个字符?

and if tiny int has range of 0-255, does this mean it can be stored with 255 char?

是什么是

1. tiny int (1)
2. tiny int (2) 

code>范围0-10

what will be the range 0-10

推荐答案

1个字节可以包含1个字符。
例如:
参考每个字符的Ascii值&转换成二进制。
这是它的工作原理。

1 byte may hold 1 character. For Example: Refer Ascii values for each character & convert into binary. This is how it works.


值255存储为(11111111)base 2.
访问此链接了解有关二进制转换的更多信息。
http://acc6.its.brooklyn.cuny .edu /〜gurwitz / core5 / nav2tool.html

Tiny Int大小为1字节(-128至127)

Size of Tiny Int = 1 Byte ( -128 to 127)

Int = 4字节(-2147483648至2147483647)

Int = 4 Bytes (-2147483648 to 2147483647)

这篇关于1字节可以存储多少个字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆