pointeurs c
snippet in c

pointeurs c

user7956

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

pointeurs en C

user6480

int age = 10;
int *pointeurSurAge = &age;

printf("%d", *pointeurSurAge);