home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!uta!vehka.cs.uta.fi!csfraw
- From: csfraw@vehka.cs.uta.fi (Francis Akoto)
- Newsgroups: comp.lang.pascal
- Subject: help ??
- Message-ID: <8269@kielo.uta.fi>
- Date: 22 Jan 93 12:35:30 GMT
- Sender: news@uta.fi
- Reply-To: csfraw@vehka.cs.uta.fi (Francis Akoto)
- Distribution: world
- Organization: University of Tampere, Finland
- Lines: 24
- Nntp-Posting-Host: vehka
-
- Can somebody please explain the code below
-
- ( i.e can you write it in another way )
-
- -----
- vi: integer ;
-
- if ( vi and 1) = 1 then
- vi := vi shr 1;
- ...............
- ...............
-
-
-
- for example : what happens if vi= 1 or vi = 2 etc will the if statment be true
- and what is "shr".
-
-
- thanks
- --
- gallows
- Opinions are like assholes;
- Everybody has one but nobody wants to look at the others.
-
-