double ***x;
what does it mean to declare declare a variable with three asterisks? Is this a pointer to a pointer to a pointer to a double?
It declares a pointer to a char pointer.
In computer programming, a dereference operator, also known as an indirection operator, operates on a pointer variable. It returns the location value, or l-value in memory pointed to by the variable's value. In the C programming language, the deference operator is denoted with an asterisk (*).
Here, * is called dereference operator. This defines a pointer; a variable which stores the address of another variable is called a pointer. Pointers are said to point to the variable whose address they store.
They are the pointer denotations. The '*' is a pointer to a variable, and '&' is its memory address. Since the asterisk resembles a gold coin, I read *b as “value of b”.
It is a pointer to a pointer to a pointer to a double.
Indeed it is a pointer to a pointer to a pointer to a double.
Either a big multi-dimensional array, or just many levels of pointer indirection.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With