Deutsch English Français Italiano |
<87o6xn60qc.fsf@nosuchdomain.example.com> 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: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: Integral types and own type definitions (was Re: Suggested method for returning a string from a C program?) Date: Wed, 26 Mar 2025 12:38:51 -0700 Organization: None to speak of Lines: 23 Message-ID: <87o6xn60qc.fsf@nosuchdomain.example.com> References: <vrd77d$3nvtf$2@dont-email.me> <vreve4$19klp$2@dont-email.me> <20250319201903.00005452@yahoo.com> <86r02roqdq.fsf@linuxsc.com> <vrh1br$35029$2@dont-email.me> <LRUCP.2$541.0@fx47.iad> <vrh71t$3be42$1@dont-email.me> <KFVCP.594649$SZca.498578@fx13.iad> <vrhb77$3frk8$1@dont-email.me> <vrru8f$174q6$1@dont-email.me> <86o6xpk8sn.fsf@linuxsc.com> <vrtmu4$2s1q2$1@dont-email.me> <20250325011327.41@kylheku.com> <20250325131110.000056bd@yahoo.com> <86bjtpjp22.fsf@linuxsc.com> <vruid4$3iuvq$1@dont-email.me> <87iknw7sz8.fsf@nosuchdomain.example.com> <vs0e6r$1avlb$2@dont-email.me> <87sen05cza.fsf@nosuchdomain.example.com> <vs0olv$1lodm$1@dont-email.me> <vs14p5$20ejf$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Wed, 26 Mar 2025 20:38:53 +0100 (CET) Injection-Info: dont-email.me; posting-host="469e8dc95fda8e96af14b48a4cec7ffc"; logging-data="2577851"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iI3PauKnXoV46MzXJFVop" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:E5gWZc7L4LddBj7qcN2FwJrfs+w= sha1:CpR2uZ0FdX8APZhrTCUsR0B0aow= Bytes: 2598 Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes: > On 26.03.2025 12:33, David Brown wrote: [...] >> Even in C (in a desperate attempt to bring us back on topic for the >> group), there are no negative integer constants - merely positive >> integer constants with a unary minus operator applied. > > Is that so? (Harmlessly asking.) - I mean, if I write int x = -5; > does it matter (in "C") whether its parsed as <integer number> or > <negation> <positive number> ? If -5 were a single token (an integer constant), then 6-5 would be an integer constant 6 followed by an integer constant -5, a syntax error. If INT_MIN is -2147483648 and INT_MAX is 2147483647, the expression -2147483648 is of type long int. Implementations of <limits.h> have to work around this. [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */