Re:Oops! We Automated Bullshit
by diydsp on Friday November 17, 2023 @09:49AM
(#38304343)
I was curious, too. Looked it up. Still don't understand tho.
>The sizeof in C is an operator, and all operators have been implemented at compiler level; therefore, you cannot implement sizeof operator in standard C as a macro or function. You can do a trick to get the size of a variable by pointer arithmetic.
>The sizeof in C is an operator, and all operators have been implemented at compiler level; therefore, you cannot implement sizeof operator in standard C as a macro or function. You can do a trick to get the size of a variable by pointer arithmetic.