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
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
double pointers C++
#include <stdio.h>
int main(void)
{
int value = 100;
int *value_ptr = &value;
int **value_double_ptr = &value_ptr;
printf("Value: %d\n", value);
printf("Pointer to value: %d\n", *value_ptr);
printf("Double pointer to value: %d\n", **value_double_ptr);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us