Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] C puzzle
- Date: Fri, 26 Jul 2002 19:57:33 -0400
- From: Viktor Pavlenko <vvp@example.com>
- Subject: Re: [tlug] C puzzle
- References: <20020726012006.M48242-100000@example.com><15680.11598.642676.889439@example.com><1027725222.13382.6.camel@example.com><15681.56028.516393.98308@example.com><1027727176.13383.17.camel@example.com>
>>>>> "br" == bruno raoult <br@example.com> writes: br> How to get 21 "-" chars output? >> >> for(i = 0 ;~i < n ; i--) br> Hi Viktor, br> You got it. And *sumimasen* again for the second one (to get 1 br> char output only) :) br> By the way, how did you find the "~" astuce? This solution br> always gives me an impression of "random try". :) Well, I'll be honest:) I posted the puzzle on a local C/C++ mailing list, and somebody (without giving a correct replacement) answered that ~ prints 21 '-'. BTW, you can test the level of a list with this puzzle. TLUG won ;) But if you think about it, inversion of a number has something to do with changing its sign... Viktor
- References:
- [tlug] C puzzle
- From: Tod McQuillin
- Re: [tlug] C puzzle
- From: Viktor Pavlenko
- Re: [tlug] C puzzle
- From: bruno raoult
- Re: [tlug] C puzzle
- From: Viktor Pavlenko
- Re: [tlug] C puzzle
- From: bruno raoult
Home | Main Index | Thread Index
- Prev by Date: [tlug] Re: C puzzle
- Next by Date: Re: [tlug] Re: C puzzle
- Previous by thread: Re: [tlug] C puzzle
- Next by thread: [tlug] Re: C puzzle
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links