Re: Re[4]: OOT: Interesting C quiz

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Wed, 18 Feb 2004 10:38:04 +0000, Pete Lomax
<petelomax at blueyonder.co.uk> wrote:

>
>
>On Tue, 17 Feb 2004 21:53:42 +0800, aku saya <akusaya at gmx.net> wrote:
>
>>1. change i-- to n--
>>2. change i<n to -i<n
>>3. change i<n to i+n (tricky!)
>>4. change i<n to ~i<n
>>
>>The question says there are at least 4 ways,, who knows there are
>>more...??
>Does i^n work?
Sorry, I just realised that's another infinite loop, never mind.

Pete

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu