?
Solved

Indirection?

Posted on 2003-03-03
5
Medium Priority
?
389 Views
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.
0
Comment
Question by:ogeikem
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

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

Author Comment

by:ogeikem
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.
0
 
LVL 14

Expert Comment

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

Accepted Solution

by:
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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month9 days, 6 hours left to enroll

764 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