(K&R) At least the first 31 characters of an internal name are significant?

后端 未结 5 965
独厮守ぢ
独厮守ぢ 2020-12-14 20:18

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

I\'m a beginning learner of C using K&R. He

5条回答
  •  Happy的楠姐
    2020-12-14 20:58

    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.

    Let's say we only have 6 significant characters.

    a_very_long_name
    
    a_very_long_name_thats_too_similar
    

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

提交回复
热议问题