首页 > TAG信息列表 > pointerName
C++指针
两种声明方式 int* p = new int; *p = 1000; int a = 1000; int* p = &a; 数组名和指针的区别 指针的值可以修改,数组名是常量。 pointerName = pointerName + 1; //valid arrayName = arrayName + 1; //not allowed sizeof(arrayName)为数组的长度,sizeof(pointerName)C++指针
两种声明方式 int* p = new int; *p = 1000; int a = 1000; int* p = &a; 数组名和指针的区别 指针的值可以修改,数组名是常量。 pointerName = pointerName + 1; //valid arrayName = arrayName + 1; //not allowed sizeof(arrayName)为数组的长度,sizeof(pointerName)