Possible Duplicate:
Why is sizeof an operator?
Why is sizeof supposed to be an operator in C, & not a function?
Its usage seems similar to that of a function call, as in sizeof(int).
Is it supposed to be some kind of a pseudo-function?
Because it's not a function; it's not possible to write a function that can take a type as an argument and return its size! Note also that sizeof is implemented at compile-time, and that the parentheses aren't necessary if you're using it on a variable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With