- Nov 18 Sat 2023 14:27
-
雞同鴨講2,記憶體對齊(pragma pack)與位元順序(Endianness)
- Nov 11 Sat 2023 07:13
-
感情生變?分手談判?重返光棍?
- Nov 04 Sat 2023 16:31
-
雞同鴨講1,char的邊界值和編譯期檢查
參考資料:
https://stackoverflow.com/questions/46463064/what-causes-a-char-to-be-signed-or-unsigned-when-using-gcc
https://stackoverflow.com/questions/51141245/printf-unsigned-char-and-hhd
https://stackoverflow.com/questions/46463064/what-causes-a-char-to-be-signed-or-unsigned-when-using-gcc
https://stackoverflow.com/questions/51141245/printf-unsigned-char-and-hhd
- Oct 20 Fri 2023 21:35
-
海洋廣場,胖橘貓躍國慶
- Oct 15 Sun 2023 09:14
-
海洋廣場,紳士賀國慶
- Oct 09 Mon 2023 06:00
-
海洋廣場,黑鳶賀國慶
- Oct 07 Sat 2023 10:53
-
貓咪不見了 - 大叔橘
- Oct 03 Tue 2023 19:00
-
葉子紅了 - 2016~2017年
- Sep 27 Wed 2023 20:12
-
燕巢空了 - 2023年
- Sep 21 Thu 2023 21:38
-
Sky Games,天空遊戲,平交道停看聽
- Sep 17 Sun 2023 10:42
-
C變數的唯讀(const)和改值(pointer),補充記憶體位置的判讀
參考資料
https://stackoverflow.com/questions/153065/converting-a-pointer-into-an-integer
32位元程式的記憶體位置是4 bytes,16進位輸出會變成8 chars,程式碼寫成
printf("%p", pointer);
顯示上看起來沒問題
https://stackoverflow.com/questions/153065/converting-a-pointer-into-an-integer
32位元程式的記憶體位置是4 bytes,16進位輸出會變成8 chars,程式碼寫成
printf("%p", pointer);
顯示上看起來沒問題








