Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!sri-spam!mordor!lll-tis!ptsfa!hoptoad!academ!uhnix1!sugar!peter From: peter@sugar.UUCP (Peter DaSilva) Newsgroups: comp.lang.c Subject: Re: static char (*b)[6]; /* an unusual declaration */ Message-ID: <207@sugar.UUCP> Date: Fri, 19-Jun-87 07:55:29 EDT Article-I.D.: sugar.207 Posted: Fri Jun 19 07:55:29 1987 Date-Received: Thu, 25-Jun-87 06:32:37 EDT References: <761@bsu-cs.UUCP> <2117@dg_rtp.UUCP> Organization: Sugar Land UNIX - Houston, TX Lines: 15 I'm holding the line-eater for ransom somewhere in lower slobbovia! In article <2117@dg_rtp.UUCP>, throopw@dg_rtp.UUCP (Wayne Throop) writes: > > What is the meaning of the following declaration? > > static char (*b)[6]; > Static pointer to an array of six characters. The same memory layout > (though *not* the same type) can be had by the declarations: > char q[6]; > static char *r = q; except that static char (*b)[6] doesn't actually allocate the 6 bytes. Better would be typedef char mytype[6]; static mytype *b;