c语言——初阶指针
2023-07-24
23 浏览
int main()
{
int a = 10;//在内存中开辟一块空间
int* pa = &a;//这里我们对变量a,取出它的地址,可以使用&操作符。
//a变量占用4个字节的空间,这里是将a的4个字节的第一个字节的地址存放在p变量 中,pa就是一个之指针变量。
return 0;
}

" width="16" class="ne-image-loading-icon">

int num = 10;
p = #



" width="16" class="ne-image-loading-icon">


" width="16" class="ne-image-loading-icon">

" width="16" class="ne-image-loading-icon">

" width="16" class="ne-image-loading-icon">




" width="16" class="ne-image-loading-icon">



" width="16" class="ne-image-loading-icon">


" width="16" class="ne-image-loading-icon">


" width="16" class="ne-image-loading-icon">



" width="16" class="ne-image-loading-icon">


" width="16" class="ne-image-loading-icon">

" width="16" class="ne-image-loading-icon">




" width="16" class="ne-image-loading-icon">


" width="16" class="ne-image-loading-icon">

请后发表内容