6.2 设有定义语句:char a='\72';,则变量a含几个字符._百度知道 1个回答 - 提问时间:2013年07月26这个问题是您之前在知道上回答的.您的解释为/72为八进制 可是我看书上八进制的形式好像是/ddd,即需

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 08:02:19

6.2 设有定义语句:char a='\72';,则变量a含几个字符._百度知道 1个回答 - 提问时间:2013年07月26这个问题是您之前在知道上回答的.您的解释为/72为八进制 可是我看书上八进制的形式好像是/ddd,即需
6.2 设有定义语句:char a='\72';,则变量a含几个字符._百度知道 1个回答 - 提问时间:2013年07月26
这个问题是您之前在知道上回答的.您的解释为/72为八进制 可是我看书上八进制的形式好像是/ddd,即需要三位数来表示八进制 求教!

6.2 设有定义语句:char a='\72';,则变量a含几个字符._百度知道 1个回答 - 提问时间:2013年07月26这个问题是您之前在知道上回答的.您的解释为/72为八进制 可是我看书上八进制的形式好像是/ddd,即需
以下英语内容来自n1256.pdf(开放的最新的C99标准)6.4.4.4 Character constants
.
octal-escape-sequence:
\ octal-digit
\ octal-digit octal-digit
\ octal-digit octal-digit octal-digit
.
The octal digits that follow the backslash in an octal escape sequence are taken to be part of the construction of a single character for an integer character constant or of a single wide character for a wide character constant. The numerical value of the octal integer so formed specifies the value of the desired character or wide character .
Each octal or hexadecimal escape sequence is the longest sequence of characters that can constitute the escape sequence.
大概意思是,\后面接1~3个八进制数字都构成八进制转义序列,编译时转义序列取最长的,即\后面三个八进制数字就取三个,如果第三个是字母就尝试两个,等等.