tags:

views:

190

answers:

5

Possible Duplicate:
Uses for multiple levels of pointer dereferences?

I have used functions with doubly dereferenced pointers (**var) to return values. However, I was recently asked a question to figure out a use-case where a triple dereferencing (***var) may be needed. I couldn't think of any practical scenario. Does anyone have any experience here?

+2  A: 

If you have a tensor, then you would need triple dereferencing.

Michael Aaron Safyan
+4  A: 

Three dimensional arrays.

Martin York
A: 

A pointer to a handle.

Martin York
+1  A: 

if you want to have a two-dimensional pointer array used to referencing a general two-dimensional array, you would need triple dereferencing.

Daniel-Chen
+1  A: 

A two dimensional array containing pointers to functions.

antler