Free Online Dictionary
Dereference operator
| Wikipedia English The Free Encyclopedia | Download this dictionary |
Dereference operator
The dereference operator or indirection operator, denoted by "
*" (i.e. an asterisk), is a unary operator found in C-like languages that include pointer variables. It operates on a pointer variable, and returns an l-value equivalent to the value at the pointer address. This is called "dereferencing" the pointer. For example, the C code <source lang="C">int x = 0; int *pointer_to_x = ? (*pointer_to_x) += 1; //x is now equal to 1</source> increments the variable
x by using the indirection operator and a pointer to the variable x.| See more at Wikipedia.org... |
© This article uses material from Wikipedia® and is licensed under the GNU Free Documentation License and under the Creative Commons Attribution-ShareAlike License
| Dereference operator in English
You think you have ethics...
Take the survey NOW!
