Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: sizeof() Date: Mon, 19 Dec 2022 10:02:57 -0800 Organization: None to speak of Lines: 14 Message-ID: <87mt7js23y.fsf@nosuchdomain.example.com> References: MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="8e7fdbea1bc660c36eba0e0212d247ec"; logging-data="437877"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6IanFHk+7MCwZJtsBh5Vv" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:cBtGd7Brj3/hhsNx1cp1So9VjLk= sha1:lAzePWwMviaADJiwvI/2I8dQcJ4= Xref: csiph.com comp.lang.c++:88065 "gdo...@gmail.com" writes: > should be consider a function not an operator? [...] No, sizeof is an operator. A function cannot take a type as an argument, nor can it fail to evaluate its argument(s). The sizeof operator seems odd because its symbol is a keyword rather than a punctuation symbol. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for XCOM Labs void Void(void) { Void(); } /* The recursive call of the void */