home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.claremont.edu!ucivax!orion.oac.uci.edu!beckman.com!dn66!a_rubin
- Newsgroups: comp.lang.c
- Subject: Re: Byte Order Question
- Message-ID: <a_rubin.714324354@dn66>
- From: a_rubin@dsg4.dse.beckman.com (Arthur Rubin)
- Date: 20 Aug 92 15:25:54 GMT
- References: <1992Aug20.131614.23729@bnrmtl.bnr.ca>
- Nntp-Posting-Host: dn66.dse.beckman.com
- Lines: 15
-
- In <1992Aug20.131614.23729@bnrmtl.bnr.ca> john@bnrmtl.bnr.ca (John Hickin) writes:
-
- >Forgive me if this is a FAQ but here goes.
-
- >Suppose int's are 2 bytes. Then division of a positive number by 256 should
- >retrieve the most significant byte of the int. What about a right shift by 8?
- >My suspicion is that the result of the shift of a positive number could depend
- >on whether the byte order is big or little endian. Is my suspicion correct?
-
- Nope. It must produce the same result (for a positive number).
- --
- Arthur L. Rubin: a_rubin@dsg4.dse.beckman.com (work) Beckman Instruments/Brea
- 216-5888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal)
- My opinions are my own, and do not represent those of my employer.
- My interaction with our news system is unstable; if you want to be sure I see a post, mail it.
-