gpt4 book ai didi

c++ - c99 : 63 characters of an internal name are significant?

转载 作者:行者123 更新时间:2023-11-30 21:16:42 24 4
gpt4 key购买 nike

Possible Duplicate:
At least the first 31 ,or 63 characters of an internal name are significant?

以下是本书的直接引用(K&R,第 2 版,第 35 页):

"At least the first 31 characters of an internal name are significant. For function names and external variables, the number may be less than 31, because external names may be used by assemblers and loaders over which the language has no control. For external names, the standard guarantees only for 6 characters and a single case."

c99中,其内部名称没有长度限制,但只有前63个是重要的。

我的问题是为什么这些限制具体为 3163?为什么这个数字具体为什么不是 19,24 或任何其他数字?如果是实现问题,将其设置为 3163 是否有好处?

最佳答案

因此长度可以是 2 的幂,甚至包括 NUL 终止。

关于c++ - c99 : 63 characters of an internal name are significant?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10164277/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com