常量指针与指针常量

(1)常量指针,表示指针指向的地址的内容不可改变ios (2)指针常量,表示指针指向的地址不可改变,必须声明时进行初始化指针 #include <stdio.h> #include <iostream> int main(int argc, char *argv[]) { // 常量指针,表示指针指向的地址的内容不可改变 const int a = 1; const int *pa = &
相关文章
相关标签/搜索