C/C++二三事
文章平均质量分 77
tianhellotk
这个作者很懒,什么都没留下…
展开
-
literal constants
字符常量包含一个或多个字符,周围使用单引号围起来,如:‘a’ 'xy' '0'但是也需要注意某些特殊的字符是例外:单引号(‘),反斜线(/),双引号(”)等单引号: /' 双引号: /"问号: /?反斜线: //“/x”是十六进制的意思,后面跟十六进制的数字字符“/o、/oo、/ooo”(o为任意一个八进制字符),代表八进制的字符原创 2011-03-21 20:50:00 · 540 阅读 · 0 评论 -
Difference between pointer and array
Can anybody tell me difference between the bellow statements?char *p = "This is test"; char a[] = "This is test";ANS:When you declare char p[] you are declaring an array of chars (which is accessible to be both read and written), and this array is init转载 2011-03-24 23:30:00 · 287 阅读 · 0 评论