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


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

Re: sizeof()

From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c++
Subject Re: sizeof()
Date 2022-12-19 10:02 -0800
Organization None to speak of
Message-ID <87mt7js23y.fsf@nosuchdomain.example.com> (permalink)
References <fef9de52-9919-4d1d-9b5f-aa67f6c40c03n@googlegroups.com>

Show all headers | 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