※ 引述《zzss2003 (brotherD)》之铭言: : hi,鲁蛇小弟我在看C How to program 6/e时,看到了这段话: : "The value of a string is the address of its first character" : 字串的值是第一个字符的位址 : 所以小弟我做了一个实验,图:https://imgur.com/a/wpuXV : 用GCC编译的结果,这个string的值为h,并不是h的位址 : 请问各位大大,小弟的实验在观念上哪里有错误吗? 谢谢各位的建议,我把程式码改成如下(不晓得是不是这样贴?) <script src="https://ideone.com/e.js/5bzuCk" type="text/javascript" ></script> 并且画了这张图: https://imgur.com/a/2YrCK 那书上说的: The value of a string is the address of its first character,在我画 的图中所指的就是a,所以string"hello"的值就是0x2b825a9177a4 (有错请指正,谢谢~)