Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #88065

Re: sizeof()

Path csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Keith Thompson <Keith.S.Thompson+u@gmail.com>
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> (permalink)
References <fef9de52-9919-4d1d-9b5f-aa67f6c40c03n@googlegroups.com>
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

Show key headers only | View raw


"gdo...@gmail.com" <gdotone@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 */

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

sizeof() "gdo...@gmail.com" <gdotone@gmail.com> - 2022-12-19 09:12 -0800
  Re: sizeof() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2022-12-19 10:02 -0800
  Re: sizeof() Juha Nieminen <nospam@thanks.invalid> - 2022-12-19 18:13 +0000
  Re: sizeof() Tony Oliver <guinness.tony@gmail.com> - 2022-12-19 16:35 -0800
  Re: sizeof() Öö Tiib <ootiib@hot.ee> - 2022-12-20 01:36 -0800

csiph-web