delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/07/02:30:17

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: allocating dword aligned memory with __dpmi_allocate_memory
Date: Tue, 06 Oct 1998 22:52:41 -0700
Organization: Alcyone Systems
Lines: 20
Message-ID: <361B01A9.75CC52FD@alcyone.com>
References: <009301bdf19e$c0093e80$986f19c4 AT default>
NNTP-Posting-Host: kamali.alcyone.com
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.30 i586)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

StefanViljoen,6599 wrote:

> Hey, what does the tilde "~" do here? "+3)&~4) ?
> 
> I've never heard of a tilde opearator - what's it used for? (Newbie
> alert!)

~ is the unary bitwise negation operator.  It flips all the bits in the
operand.

You should get an introductory book on standard C.

-- 
Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 
Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com
  San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/
          USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE
             \
            / Bachelors have consciences, married men have wives.
           / H.L. Mencken

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019