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

来源:学生作业帮助网 编辑:作业帮 时间:2024/10/06 14:47:28
6.2 设有定义语句:char a='\72';,则变量a含几个字符._百度知道 1个回答 - 提问时间:2013年07月26这个问题是您之前在知道上回答的.您的解释为/72为八进制 可是我看书上八进制的形式好像是/ddd,即需
xTMSP++7-qtLUo@F*`t/$+BK@t];Ӂ sϹDaٵVڞ*5JcB LNt㜦JFAX-4j,w.BCaںaL(l svll:-zJfsӱÏ}IHtܾݧ+D:lZ5U= h父 ZEhQ}tSLӾO.ϛͬYg V,_OGbmET%f]Wi'>aR޵3=Ƕn@Nn&FGaWٰ9 t"A5˺:ݫ"81H4'ɠFޥ,1D(J1I9ĉ ѐ:*2 MaaZK`-$aKjEZV 4)XǨv]RdHXDkKNb|F}B@x:+}O\?MʩJ'RWNXS $~I&@yp'p_c!uJ|"f~P8Xދvr[Nܴ'j9=>ad"m$اR0_Y찃%ٸ۝ <6h&;v}q;p[8|oҧO@  V(myyV5 _$%<_J?FE

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个八进制数字都构成八进制转义序列,编译时转义序列取最长的,即\后面三个八进制数字就取三个,如果第三个是字母就尝试两个,等等.