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

 /*************************************************************************
> 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

上一篇:C语言的整型溢出问题


下一篇:Spring Boot 乐观锁加锁失败 - 使用AOP恢复错误