(K&安培; R)至少有一个内部名称的前31个字符是显著? [英] (K&R) At least the first 31 characters of an internal name are significant?

查看:327
本文介绍了(K&安培; R)至少有一个内部名称的前31个字符是显著?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在字面上看,这是有道理的,但究竟是什么意思是一个变量名的显著人物?

When taken literally, it makes sense, but what exactly does it mean to be a significant character of a variable name?

我使用K&放C的开始学习; R。下面是从书中直接引用:

I'm a beginning learner of C using K&R. Here's a direct quote from the book:

至少一个内部名称的前31个字符是显著,对于函数名和外部变量的数目可以少于31,因为外部名称可以由汇编和装载机超过该语言没有控制被使用。对于外部名称,该标准只保证6个字符和一个单一的情况下。

"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."

顺便说一句,这是什么的单案呢?

By the way, what does it mean by "single case"?

推荐答案

单例通常意味着小写。除了一些操作系统的它的意思是大写。关键是,混合的情况下,不保证工作。

Single Case usually means "lower case". Except in some OS's where it means "upper case". The point is that mixed case is not guaranteed to work.

abcdef

ABCDEF

区别仅万一。这是不能保证的工作。

differ only in case. This is not guaranteed to work.

在意义的问题是很多的信件怎么能是同一个。

The "Significance" issue is one of how many letters can be the same.

比方说,我们只有6显著字符。

Let's say we only have 6 significant characters.

a_very_long_name

a_very_long_name_thats_too_similar

看不同,但第16个字符是相同的。由于只有6是显著,那些是相同的变量。

Look different, but the first 16 characters are the same. Since only 6 are significant, those are the same variable.

这篇关于(K&安培; R)至少有一个内部名称的前31个字符是显著?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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