Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!stealth.acf.nyu.edu!brnstnd From: brnstnd@stealth.acf.nyu.edu Newsgroups: comp.lang.c Subject: Re: array of bits field Message-ID: <2003:22:58:39@stealth.acf.nyu.edu> Date: 13 Feb 90 22:58:40 GMT References: <2802@cunixc.cc.columbia.edu> <22287@mimsy.umd.edu> <7184@arcturus> <11961@frog.UUCP> <1990Feb12.182517.10921@cubmol.bio.columbia.edu> Reply-To: brnstnd@stealth.acf.nyu.edu (Dan Bernstein) Distribution: usa Organization: IR Lines: 13 In article <1990Feb12.182517.10921@cubmol.bio.columbia.edu> ping@cubmol.bio.columbia.edu (Shiping Zhang) writes: > Is there a way to define an array of bits field which are tightly packed? I believe the only solution is to write out each bit separately. It isn't too painful. > struct { > int bits[16]:1; > } bits; You can't point to a bit, so you can't have an array of bits. ---Dan