Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium



Posted on 2003-03-03
Medium Priority
Last Modified: 2010-03-31
Please show me an example of a situation where it is necessary to use double or triple indirection and why double or triple indirection is the right solution in this situation.
Question by:ogeikem
  • 3
  • 2
LVL 14

Expert Comment

by:Tommy Braas
ID: 8059623
No homework assignments here please, you're in breach of the membership agreement.

Author Comment

ID: 8059736
This is not a homework assignment. I have an M.Sc. IT degree and I am a SUN certified java programmer. I just need to brush up on indirection. Thanks.
LVL 14

Expert Comment

by:Tommy Braas
ID: 8059992
In that case, I apologize. ;-)
LVL 14

Accepted Solution

Tommy Braas earned 80 total points
ID: 8060053
The most common application of multiple indirection is dynamically sizeable arrays.  Double indirection appears in 2-D dynamic arrays; triple indirection, in 3-D dynamic arrays.  

Assignment to an array element must occur through the references that support the multidimensional array structure.

Moreover, simple assignment is not possible in a method that inserts a value into a linked list.  The nodes of a linked list are usually unnamed, dynamically allocated  instances in the heap.  Simple assignment to a variable is impossible since a variable name does not exist. The insertion function gets only a reference to the node where the value is to be stored.

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question