Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #15853

Re: RELATION BETWEEN OPERATORS

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: RELATION BETWEEN OPERATORS
Date 2012-01-16 12:03 -0800
Organization None to speak of
Message-ID <ln8vl71kk8.fsf@nuthaus.mib.org> (permalink)
References <a1a4c454-f03c-4fbe-a936-f671b1de8433@v6g2000pba.googlegroups.com> <18488243.1382.1326733887573.JavaMail.geo-discussion-forums@yqni15>

Show all headers | View raw


John Bode <jfbode1029@gmail.com> writes:
> There is no relationship between the two.  One's an arithmetic
> operation, the other's a bitwise operation.  For some combinations of
> operands they will produce the same results, but that's by
> coincidence, not design.

The question was about the relationship between (x%8) and (x&7), but you
can't tell that by reading your answer.  Please quote enough context
from the parent article so your answer makes sense by itself.  (And
don't delete the "Re: " from the subject header.)

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
    Will write code for food.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

RELATION BETWEEN OPERATORS ishwar mehta <imehta285@gmail.com> - 2012-01-15 01:54 -0800
  Re: RELATION BETWEEN OPERATORS Dr Nick <3-nospam@temporary-address.org.uk> - 2012-01-15 10:21 +0000
  Re: RELATION BETWEEN OPERATORS "BartC" <bc@freeuk.com> - 2012-01-15 10:51 +0000
    Re: RELATION BETWEEN OPERATORS Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-01-15 13:42 +0000
      Re: RELATION BETWEEN OPERATORS Peter Nilsson <airia@acay.com.au> - 2012-01-17 18:19 -0800
  Re: RELATION BETWEEN OPERATORS Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-01-15 04:01 -0800
  RELATION BETWEEN OPERATORS John Bode <jfbode1029@gmail.com> - 2012-01-16 09:11 -0800
    Re: RELATION BETWEEN OPERATORS Keith Thompson <kst-u@mib.org> - 2012-01-16 12:03 -0800
      Re: RELATION BETWEEN OPERATORS John Bode <jfbode1029@gmail.com> - 2012-01-17 03:43 -0800

csiph-web