指针作为函数参数传递以及指针的指针
指针作为函数参数传递
函数参数传递的只能是数值,所以当指针作为参数传递时,传递的是指针的值,而不是地址。
#include <stdio.h>
void pointer(int* p)
{
int a = 11;
printf("\n\nEnter function");
printf("\nthe p is point to %p , addr is %X,*p is %d",...
转载
2020-04-12 21:33:38 ·
2886 阅读 ·
0 评论