C Pointers Question:

Download Job Interview Questions and Answers PDF

Explain indirection?

C Pointers Interview Question
C Pointers Interview Question

Answer:

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. If p is a pointer, the value of p is the address of the object. *p means "apply the indirection operator to p"; its value is the value of the object that p points to. (Some people would read it as "Go indirect on p.")

Download C Pointers Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me with an example the self-referential structure?How many levels of pointers have?