Re: programming
On Mon, Nov 05, 2001 at 03:42:55PM +0100, martin f krafft wrote:
| * Erik Steffl <steffl@bigfoot.com> [2001.11.04 17:20:37-0800]:
| > not sure if it's clear but there's a difference when sizeof's argument
| > is array or pointer:
|
| 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}
-D
Reply to: