※ 引述《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 (有錯請指正,謝謝~)