字符常量是指用一对单引号括起来的一个字符。如‘a’,‘9’,‘!’。字符常量中的单引号只起定界作用并不表示字符本身。
... character code translation 字符代码转换 character constant 字符常数 character counter 字符计数器 ...
基于290个网页-相关网页
字符和字符串常数支持标准换码序列。
Character and string constants support the standard escape sequences.
常数可以是整数、字符、浮点数、字符串、Boolean、octet或枚举型,但不能是any类型或用户定义的类型。
Your constants can be integer, character, floating-point, string, Boolean, octet or enumerated but not of type any or a user-defined type. Here are some examples.
当复制到 s1 的字符串长于 s1 的分配大小(即 BUFSIZE,一个在 stdio.h 中定义的常数)时,就会发生缓冲区溢出情况。
This can happen if the string copied into s1 is longer than the allocated size of s1, which is BUFSIZ (a constant defined in stdio.h).
应用推荐