Deutsch English Français Italiano |
<vobuea$12bi8$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Andrey Tarasevich <noone@noone.net> Newsgroups: comp.lang.c Subject: Re: Two questions on arrays with size defined by variables Date: Sun, 9 Feb 2025 20:14:01 -0800 Organization: A noiseless patient Spider Lines: 13 Message-ID: <vobuea$12bi8$2@dont-email.me> References: <vo9mns$gsd7$1@dont-email.me> <vo9nn3$gtph$1@dont-email.me> <vo9u0u$i0n8$1@dont-email.me> <878qqf1kl2.fsf@nosuchdomain.example.com> <voanvq$o6uh$1@dont-email.me> <877c5yr5vv.fsf@nosuchdomain.example.com> <vobol8$ts5l$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 10 Feb 2025 05:14:03 +0100 (CET) Injection-Info: dont-email.me; posting-host="ec9a9656cbb4379708d2730e3f83a08b"; logging-data="1125960"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DnnS0Q/MqjjL1b4HI0z34" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:jZnpEh+fIUlsESRN/C3Nqu2GqdQ= Content-Language: en-US In-Reply-To: <vobol8$ts5l$1@dont-email.me> Bytes: 1726 On Sun 2/9/2025 6:35 PM, Janis Papanagnou wrote: >> The "return 0;" is unnecessary but harmless in C99 and later. > > That - returning a value when a function is declared to return > one - is actually a [maybe picky] coding-habit of mine. :-) This is, of course, a purely stylistic matter. But still... `main` is special. And it kinda makes sense to acknowledge it special nature by not doing explicit `return 0` from `main`. `main` looks cleaner without it. -- Best regards, Andrey