Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!purdue!mentor.cc.purdue.edu!j.cc.purdue.edu!brazil.psych.purdue.edu!zhou From: zhou@brazil.psych.purdue.edu (Albert Zhou) Newsgroups: comp.lang.pascal Subject: Re: bit problem Message-ID: <11513@j.cc.purdue.edu> Date: 19 Nov 90 20:17:51 GMT References: Sender: news@j.cc.purdue.edu Reply-To: zhou@brazil.psych.purdue.edu (Albert Zhou) Organization: Purdue University Lines: 5 I don't know what kind of Pascal you are talking about. In general, if you could make "AND" operation on your version of Pascal, you might easily access individual bit. For example if you want to access the third bit of a byte-size variable x, you could do it by evaluating: x AND 00000100