C语言指针的详解与应用
2023-2-1
| 2024-5-26
0  |  阅读时长 0 分钟
type
status
date
slug
summary
tags
password
category
Property
May 26, 2024 10:18 AM
icon
  • 指针(Pointer)是C语言的一个重要知识点,其使用灵活、功能强大,是C语言的灵魂
  • 指针与底层硬件联系紧密,使用指针可操作数据的地址,实现数据的间接访问
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
只增加了8个字节的开销,没有把数组再复制一遍
自己写可以定义全局变量,函数、主函数一起访问,但是不利于模块化编程,用指针的话方便封装
 
传递参数之多返回值举例:
传递句柄:
访问物理地址:
复杂格式转为字节,方便通信与存储
 
  • C
  • 嵌入式
  • C++ STL 和常用库函数STM32 学习
    Loading...
    目录