c语言中指向整型指针的指针的理解

时间:2021-02-05 10:58:01
 /*************************************************************************
> File Name: ptr_ptr_int.c
> Author: Mr.Yang
> Purpose:演示指向整型的指针的指针
> Created Time: 2017年06月03日 星期六 18时34分58秒
************************************************************************/ #include <stdio.h>
#include <stdlib.h> int main(void)
{
int s[] = {,,,};
int *p = s;
int **point = &p; printf("s = %d\n",s);
printf("s[0] = %d\n",s[]);
printf("p = %d\n",p);
printf("*p = %d\n",*p);
printf("*point = %d\n",*point);
printf("**point = %d\n",**point); return ;
}

执行结果:

 s =
s[] =
p =
*p =
*point =
**point =

由结果可知,**point = *p = s[0]    *point = p = s