This is useful especially when we get to details like forensics and looking at data on a hard drive, - 'cause if you don't know how much store-- how many bits are composing your file, you're never gonna recover that data or be able to access what you're looking for.
这是很有用的,尤其是在法庭上,查看硬盘驱动器里的数据时,如果你连-,文件有多少比特都不知道,你如何去恢复数据,获取你想要的信息呢。
So here is one of the interesting takeaways, a char, we've already spoiled this answer, takes up how many bits.
关于char还有一个重点:一个char占据多大内存,这个问题我们已经翻来覆去说了好多遍了。
char Here is the char, here is the char, how many bits did we say each of these squares is?
这是一个char,这是一个,那么这里的一个方框几比特呢?
So a char is one byte, which is bits -- how many?
所以char类型占了1个字节,--那是多少位?
应用推荐