I believe you are right: You can return whole arrays from a function.

--- In [email protected], Dimitar Tsonev <dttso...@...> wrote:
>
>   Isn't it possible to return arrays by functions? I mean, you return 
> the array which actually returns a pointer to the first element of the 
> array ? Please correct me if I'm wrong.
> 
> On 8/29/2010 12:41 AM, Pedro wrote:
> >
> > struct four_pointers
> > {
> > char *a[4];
> > };
> > typedef struct four_pointers four_pointers;
> >
> > Is it possible for a function to return an array of 4 pointers to char 
> > without encapsulating them inside a struct?
> >
> > I know it is impossible to have an automatic variable length array. 
> > But the array I'd like to return have a definite length of 4 pointers.
> >
> > Can you quote from the current Committee Draft ISO/IEC 9899:201x ?
> >
> > 
> 
> 
> 
> [Non-text portions of this message have been removed]
>


Reply via email to