Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ames!dftsrv!mimsy!dbk From: dbk@mimsy.umd.edu (Dan Kozak) Newsgroups: comp.lang.c Subject: Re: Doctor C's Pointers Message-ID: <25872@mimsy.umd.edu> Date: 3 Aug 90 17:49:49 GMT References: <1741@tuvie> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 17 From article <1741@tuvie>, by inst182@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@mimsy.umd.edu | "For I was rolled in water, Not-so-clever: uunet!mimsy!dbk | I was rolled out past the pier" - MoB