const 常量指针

来源:互联网 发布:51电子单片机原理图 编辑:程序博客网 时间:2024/05/18 01:07
#include<stdio.h>
#include <string.h>
int main()
{
 //const int  p; //错 只要不是外部变量必须初始化常量对象
const int*  p; //正确
int *  const  p;//错 只要不是外部变量必须初始化常量对象
//const int *p与int const *p用法一样!
}



1 0