What is indirection?

If you declare a variable, its name is a direct reference to its value. If you have a pointer to a variable, or any other object in memory, you have an indirect reference to its value.  

Showing Answers 1 - 1 of 1 Answers

Indirection operator (denoted by *) is a unary operator which include pointer variables. It operates on a pointer variable,and returns a value equivalent to the value at the pointer address.
Example:
x = *a;
The indirection operator used in this example is to access the int value at the address stored in a and the value is assigned to the integer variable x.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions