6.2 设有定义语句:char a='\72';,则变量a含几个字符._百度知道 1个回答 - 提问时间:2013年07
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/05/12 08:06:34
6.2 设有定义语句:char a='\72';,则变量a含几个字符._百度知道 1个回答 - 提问时间:2013年07月26
这个问题是您之前在知道上回答的.您的解释为/72为八进制 可是我看书上八进制的形式好像是/ddd,即需要三位数来表示八进制 求教!
这个问题是您之前在知道上回答的.您的解释为/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个八进制数字都构成八进制转义序列,编译时转义序列取最长的,即\后面三个八进制数字就取三个,如果第三个是字母就尝试两个,等等.
.
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个八进制数字都构成八进制转义序列,编译时转义序列取最长的,即\后面三个八进制数字就取三个,如果第三个是字母就尝试两个,等等.
6.2 设有定义语句:char a='\72';,则变量a含几个字符._百度知道 1个回答 - 提问时间:2013年07
设有变量定义语句char a; 则下面的赋值语句中 ( ) 是正确的.
C语言:设有说明语句:char a='\72';则变量a()
设有变量定义语句char a; 则下面的赋值语句中 ( ) 是正确的.A.a=’&’ B.a=”&” C.a=’16’
设有定义语句static char a[][3]={{"12"},{"34"}};则a[1][0]=?,a[1][2]=
设有如下定义:char ch='z',则执行下面语句后变量ch是值为:( ).ch=('A'
★C语言 字符变量 若有定义语句:char a='\82';则变量a.答案是说明不合法,我选的是包含一个字符.a在这里不
设有变量说明:char a[6],*p=a;下面表达中,正确的赋值语句是
设标识符ch,a都被定义为字符型变量,以下赋值语句不正确的是_ _
设有定义:char s[81];int i=10;,以下不能将一行(不超过80个字符)带有空格的字符串真确读入的语句或语
设有定义:int a=6;执行语句a+=a-=a*a;后,变量a的值是
设有定义语句:char c1=92,c2=92;,则以下表达式中值为零的是 A) c1^c2 B) c1&c2 C) c