Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: James Kuyper 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> References: <24250e2c-bcdd-4425-a730-433ffc6f89e0@googlegroups.com> <87ziyqtybf.fsf@bsb.me.uk> <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 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.