宏定義測試

宏定義 取出指定內存地址上單/雙字節數據 實驗環境 編輯器-->vscode 編譯器-->gcc 測試代碼 #include <stdio.h> #define MEM_BYTE(x) (*((unsigned char *)(x))) #define MEM_WORD(x) (*((unsigned short *)(x))) int main(void) {     unsigned char
相關文章
相關標籤/搜索