From: "Adrian Smith" Newsgroups: comp.os.msdos.djgpp References: <396368E3 DOT 14602 DOT 6A4366 AT localhost> Subject: Re: [ot] - some basic stuff Date: Wed, 5 Jul 2000 08:50:45 +0100 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Original-NNTP-Posting-Host: ppp-1-111.cvx3.telinco.net Message-ID: <3962e92d$1@news.telinco.net> X-Original-Trace: 5 Jul 2000 08:52:13 +0100, ppp-1-111.cvx3.telinco.net NNTP-Posting-Host: news2.cluster1.telinco.net X-Trace: 5 Jul 2000 08:52:16 GMT, news2.cluster1.telinco.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Don't know if this applies to you, but in digital electronics, OR gives a 1 result for 1 OR 1 wheras XOR gives a 0 for 1 XOR 1. ?? OR XOR 0 0 = 0 0 0 = 0 0 1 = 1 0 1 = 1 1 0 = 1 1 0 = 1 1 1 = 1 1 1 = 0 wrote in message news:396368E3 DOT 14602 DOT 6A4366 AT localhost... > On 5 Jul 2000, at 6:10, smile773 wrote: > > > bitwise OR of x and y x|y > > Exclusive OR x and y x^y > > yeah but what is the difference? > if i use | symbol > does that mean if either bit is 1 then the result > bit is 1 > > but then what does the exclusive ^ thing does?