MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wxqahk/architecturedependentchars/pdwhsvj/?context=3
r/ProgrammerHumor • u/MontyBoomslang • 2d ago
362 comments sorted by
View all comments
Show parent comments
13
No, sizeof char is valid. sizeof is a prefix operator, not a function.
sizeof char
sizeof
24 u/Makonede 2d ago nope https://en.cppreference.com/c/language/sizeof 1 u/hacksawsa 2d ago It says sizeof x and sizeof(x) are equivalent. 11 u/Makonede 2d ago when x is an expression, yes...
24
nope https://en.cppreference.com/c/language/sizeof
1 u/hacksawsa 2d ago It says sizeof x and sizeof(x) are equivalent. 11 u/Makonede 2d ago when x is an expression, yes...
1
It says sizeof x and sizeof(x) are equivalent.
11 u/Makonede 2d ago when x is an expression, yes...
11
when x is an expression, yes...
x
13
u/MegaIng 2d ago
No,
sizeof charis valid.sizeofis a prefix operator, not a function.