MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wxqahk/architecturedependentchars/pdw0clq/
r/ProgrammerHumor • u/MontyBoomslang • Oct 04 '26
372 comments sorted by
View all comments
Show parent comment
25
nope https://en.cppreference.com/c/language/sizeof
15 u/MegaIng Oct 04 '26 Oh, never realized the prefix operator form can't be applied to types, makes sense I guess. 1 u/rosuav Oct 06 '26 It can be applied to a thing or to a "cast" - that is, a type in parens. 1 u/hacksawsa Oct 04 '26 It says sizeof x and sizeof(x) are equivalent. 11 u/Makonede Oct 04 '26 when x is an expression, yes...
15
Oh, never realized the prefix operator form can't be applied to types, makes sense I guess.
1 u/rosuav Oct 06 '26 It can be applied to a thing or to a "cast" - that is, a type in parens.
1
It can be applied to a thing or to a "cast" - that is, a type in parens.
It says sizeof x and sizeof(x) are equivalent.
11 u/Makonede Oct 04 '26 when x is an expression, yes...
11
when x is an expression, yes...
x
View all comments
Show parent comment
25
u/Makonede Oct 04 '26
nope https://en.cppreference.com/c/language/sizeof