問題:
I'm curious about this code: 我對此代碼感到好奇:
cout << 'test'; // Note the single quotes.
gives me an output of 1952805748
. 給我一個1952805748
的輸出。
My question: Is the output an address in memory or something? 我的問題:輸出是內存中的地址還是其他?
解決方案:
參考一: https://stackoom.com/question/VIfb參考二: What do single quotes do in C++ when used on multiple characters?