#include<stdio.h>
struct test
{int b;
char a;
char c;
char d;}aa;
int main(){
const int i=10;
int j=0;
int *p2;
int *const pt=0;//指向整型的常指针
const int *pa=pt;//指向整型常量的指针
const int **p1;//指向整型常量的指针的指针
const int *p=&j;
int **const pp=&p2;//指向整型的指针的常指针
int * const *pb=&p2;//指向整型的常指针的指针
p1=&p2;
p=p2;
pb++;//合法
//(*pb)++;不合法,因为*pb是常指针
//pp++;不合法,因为是常指针
//pt++;不合法,因为是常指针
printf("Test size is:%d",sizeof(aa));
printf("The i is %d/n",i);
*p1 = &i;
*p2 = 20;
printf("The changed i is %d/n",i);
/*const 修饰和他相邻的词,即如果是定义的名字那么这个量是常量,
如果和某一种数据类型结合是指常的某个类型,const是存储类型,而int,float等
是数据类型,决定数据在内存中的组织结构,*/
}