GeekInterview.com
Series: Subject: Topic:
Question: 533 of 587

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.  
Asked by: Interview Candidate | Asked on: Mar 6th, 2005
Showing Answers 1 - 1 of 1 Answers
Sandhya.Kishan

Answered On : Mar 28th, 2012

View all answers by Sandhya.Kishan

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.

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.