指针常量 和 常量指针 void test() { int x=1; int y=1; int *const px=&x;//指针常量 内容可变 值不可变 const int *py; //常量指针 内容不可变 值可变 //px=&y; py=&x; }
指针常量 和 常量指针
原创wzdouban ©著作权
文章标签 指针常量 和 常量指针 文章分类 C/C++ 后端开发
-
C语言指针的基本认识
C语言指针的基本认识
指针变量 指针类型 指针数组 -
详解C语言中的常量指针和指针常量
常量指针和指针常量的区别 我区分常量指针和指针常量的的办法是看指针p = &am...
c语言 const 嵌入式 常量指针 指针常量