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: Wed, 31 Jul 2002 09:47:13 -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><m3d6t6xcn8.wl@example.com>
>>>>> "MB" == Masato BITO <masato.bito@example.com> writes: MB> At 27 Jul 2002 08:13:41 +0900, MB> bruno raoult wrote: >> How to get 1? (Ooops. Sorry for this one!) MB> main() { MB> int*i, n=20; int i,*n=20; This (on my machine) prints a single '-'. It works because in `i < n' comparison on the following line int i is promoted to int* (= a large positive number). MB> for(i = 0 ; i < n ; i--) MB> printf("-"); MB> } Hope not everybody is tired of this silliness :) 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: Masato BITO
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Re: C puzzle
- Next by Date: Re: [tlug] C puzzle
- Previous by thread: Re: [tlug] C puzzle
- Next by thread: [tlug] C puzzle
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links