pointeur de pointeur programmation C code example
Example 1: pointeurs c
int v;
int *p;
v = 1;
printf("v = %d\n",v);// "V=1"
p = &v;
printf("p = %p\n", p);// 0xA8D532
printf("*p = %d\n", *p);// 1
*p = 10;
printf("v = %d, *p = %d\n", v, *p);// v = 10, *p = 10
Example 2: pointeurs en C
int age = 10;
int *pointeurSurAge = &age;
printf("%d", *pointeurSurAge);