Decayed multidimensional array return from function
Posted
by paul simmons
on Stack Overflow
See other posts from Stack Overflow
or by paul simmons
Published on 2010-03-27T11:13:50Z
Indexed on
2010/03/27
11:23 UTC
Read the original article
Hit count: 189
related to http://stackoverflow.com/questions/2520535/gcc-multi-dim-array-or-double-pointer-for-warning-free-compile , is there a way to return so-called "decayed array pointer" from a function? in summary (suppose 2 dim array) returning int (*a)[5]
format rather than int**
format?
as far as I see, when returned int**
pointer is sent to another function waiting (int*)[]
parameter, it is not working correctly.
© Stack Overflow or respective owner