Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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
", value);
    printf("Pointer to value: %d
", *value_ptr);
    printf("Double pointer to value: %d
", **value_double_ptr);
}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #double #pointers
ADD COMMENT
Topic
Name
4+9 =