Doctor C's Pointers
Dan Kozak
dbk at mimsy.umd.edu
Sat Aug 4 03:49:49 AEST 1990
>From article <1741 at tuvie>, by inst182 at tuvie (Inst.f.Techn.Informatik):
>>( "abcd"[i] and f()[j] )
> Provided f is declared as
> sometype * f (void)
> it returns a pointer to sometype, and I can subscript that pointer like
> any other pointer.
Or if the declarations are
int f (void);
sometype j[SOMECONSTANT];
--
#dan
Clever: dbk at mimsy.umd.edu | "For I was rolled in water,
Not-so-clever: uunet!mimsy!dbk | I was rolled out past the pier" - MoB
More information about the Comp.lang.c
mailing list