Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: how cast works? Date: Thu, 08 Aug 2024 16:17:55 -0700 Organization: None to speak of Lines: 20 Message-ID: <87bk228uzg.fsf@nosuchdomain.example.com> References: <87ttfu94yv.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 09 Aug 2024 01:17:55 +0200 (CEST) Injection-Info: dont-email.me; posting-host="153d1bcdb0929153f62e0b2f2aa4005b"; logging-data="330861"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dGGixhA9XlEZOE8nEva7z" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:pNkV6xhWDcp2rQBndcEM0PhK1UI= sha1:Bvpp2h7VyG50EF6/Jnpu1nkLKSc= Xref: csiph.com comp.lang.c:387415 Bart writes: [...] > Take: > > int a; double x; > > x = (double)a; > > The cast is implicit here but I've written it out to make it clear. [...] The *conversion* could be done implicitly, but you've used a cast (i.e., an explicit conversion) to make it clear. There is no such thing as an "implicit cast" in C. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */