Re: programming
On Mon, Nov 05, 2001 at 08:46:53PM -0800, Craig Dickson wrote:
| dman wrote:
| > On Mon, Nov 05, 2001 at 03:42:55PM +0100, martin f krafft wrote:
| > | yes. which is exactly why i pointed this out. sizeof is a compile-time
| > | function. that's the main point.
| >
| > \begin{nitpick}
| > IIRC sizeof() is a macro. Anyways, C doesn't have inline
| > functions so all funcitons are invoked at runtime.
| > \end{nitpick}
|
| No, sizeof is not a macro, nor is it a compile-time function. It's a unary
| operator evaluated at compile-time. Look it up!
I thought operators weren't allowed to have parenthesis.
At any rate, we all agree that it is a compile-time, not runtime, thing :-).
-D
Reply to: