51单片机指针变量占几个字节
时间: 2023-12-06 14:05:09 浏览: 159
根据引用和引用的内容,51单片机中的指针变量的占用字节数取决于指针所指向的数据的存储类型。当指明数据存储类型为非xdata时,指针只占用1个字节。当指明数据存储类型为xdata时,指针只占用2个字节。当不指定数据存储类型时,指针总是占用3个字节。因此,51单片机指针变量的占用字节数可能为1、2或3个字节,具体取决于指针所指向的数据的存储类型。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [51单片机中 指针 占用的字节长度](https://blog.csdn.net/fdcp123/article/details/114264314)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [51单片机结构的C的常见错误有哪些](https://download.csdn.net/download/weixin_38703787/14817904)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文