Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #75325

Re: Funny C Program

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c
Subject Re: Funny C Program
Date Sat, 07 Nov 2015 19:56:05 -0500
Organization Self
Lines 16
Message-ID <563E9DA5.70603@verizon.net> (permalink)
References <e1367c64-92c8-4c2e-abb1-0ebf2c27bce7@googlegroups.com> <24250e2c-bcdd-4425-a730-433ffc6f89e0@googlegroups.com> <87ziyqtybf.fsf@bsb.me.uk> <lnr3k21ujq.fsf@kst-u.example.com> <4f00f36b-8b20-49e1-ad96-0a782787ac05@googlegroups.com> <563E25B0.8080504@verizon.net> <68f7c46c-0248-4dcd-8073-46a938d5e427@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
Injection-Info mx02.eternal-september.org; posting-host="39e08c8e41e420e151f672c73609c593"; logging-data="10987"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18pDLKiV8/EGFTkvOnFzDTLoDibjqP+T18="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
In-Reply-To <68f7c46c-0248-4dcd-8073-46a938d5e427@googlegroups.com>
Cancel-Lock sha1:GpdXDBm78Ki+OxrRCZSMZwleWe8=
Xref csiph.com comp.lang.c:75325

Show key headers only | View raw


On 11/07/2015 07:21 PM, jimzhou001@gmail.com wrote:
> I'm sorry.Maybe I didn't say clearly.I met the barrier when trying to
> initialize the array with "int monk[101]={0}".You can see more
> details at
> http://jimzhou001.blogspot.de/2015/11/funny-c-programcomparison-between.html?m=1

Yes - saying " I got into trouble not initializing." is not a good way
of explaining that you got into trouble while initializing.

Unless I'm missing something (which is unfortunately entirely possible),
the only possible problem with your code is that it doesn't terminate
the output with a new-line character (7.21.2p2), but it's unusual for
anything to go wrong for that reason, and quite bizarre that it would go
wrong in this fashion.
Could you identify precisely which compiler you used, and what options
you selected when using it? That might give a clue.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Funny C Program jimzhou001@gmail.com - 2015-11-03 17:54 -0800
  Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-04 05:28 +0100
    Re: Funny C Program Richard Heathfield <rjh@cpax.org.uk> - 2015-11-04 07:12 +0000
      Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-04 13:25 +0100
        Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-04 13:52 +0100
          Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 06:36 -0800
    Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 02:28 -0800
      Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-04 13:25 +0100
    Re: Funny C Program Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-04 19:07 -0800
      Re: Funny C Program bartekltg <bartekltg@gmail.com> - 2015-11-05 09:48 +0100
        Re: Funny C Program Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-05 06:08 -0800
  Re: Funny C Program Richard Heathfield <rjh@cpax.org.uk> - 2015-11-04 07:04 +0000
    Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 02:33 -0800
      Re: Funny C Program Richard Heathfield <rjh@cpax.org.uk> - 2015-11-04 10:57 +0000
        Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 03:46 -0800
          Re: Funny C Program luser droog <luser.droog@gmail.com> - 2015-11-04 10:46 -0800
            Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 15:14 -0800
  Re: Funny C Program brian.oakley@stonybrook.edu - 2015-11-04 12:37 -0800
    Re: Funny C Program jimzhou001@gmail.com - 2015-11-04 15:30 -0800
  Funny C Program jimzhou001@gmail.com - 2015-11-06 16:40 -0800
    Re: Funny C Program Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-11-07 01:04 +0000
      Re: Funny C Program Keith Thompson <kst-u@mib.org> - 2015-11-06 17:12 -0800
        Re: Funny C Program jimzhou001@gmail.com - 2015-11-06 18:47 -0800
          Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-07 11:24 -0500
            Re: Funny C Program jimzhou001@gmail.com - 2015-11-07 16:21 -0800
              Re: Funny C Program Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-11-08 00:46 +0000
              Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-07 19:56 -0500
                Re: Funny C Program jimzhou001@gmail.com - 2015-11-07 19:08 -0800
                Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-08 10:58 -0500
                Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-12 13:31 -0500
                Re: Funny C Program Keith Thompson <kst-u@mib.org> - 2015-11-12 11:59 -0800
                Re: Funny C Program jimzhou001@gmail.com - 2015-11-17 23:00 -0800
                Re: Funny C Program jimzhou001@gmail.com - 2015-11-18 00:12 -0800
                Re: Funny C Program Keith Thompson <kst-u@mib.org> - 2015-11-18 09:01 -0800
                Re: Funny C Program jimzhou001@gmail.com - 2015-11-17 23:00 -0800
    Re: Funny C Program James Kuyper <jameskuyper@verizon.net> - 2015-11-06 20:07 -0500

csiph-web