嗨可能是一个简单的问题

嗨可能是一个简单的问题

问题描述:

为什么数字数组不会以''\0''结尾。

why numeric arrays don''t end with a ''\0''.


为什么数字数组不会以''\0''结尾。
why numeric arrays don''t end with a ''\0''.



嗯,你的猜测是什么?


提示:你平均使用的数字有多大90%天?你使用的句子有多大?

Well, what is your guess?

Hint: how big are 90% of the numbers you use in an average day? How big are the sentences you use?



提示:你平均每天使用的数字有多大?你使用的句子有多大?
Hint: how big are 90% of the numbers you use in an average day? How big are the sentences you use?



答案是四,一二十二。

Answer is four, and eleventy-two.


零是有效数字。如果它意味着数字数组的结尾,那么你就不能使用零来表示数据。不好。


但是在字符的情况下,没有char的值为0.好的,为什么他们不使用1,因为没有char的值为1 。 我不知道。我当时不在那里。
Zero is a valid number. If it means the end of the numeric array then you couldn''t use zero for data. Not good.

In the case of chars, though, no char has a value of 0. OK, so why didn''t they use 1 since no char has a value of 1. I don''t know. I wasn''t there at the time.