Subject: Re: Question regarding the array of size 0.
To: Greywolf <greywolf@starwolf.com>
From: Farooq Mela <fmela0@sm.socccd.cc.ca.us>
List: tech-kern
Date: 03/20/2001 11:36:33
Greywolf wrote:
> #         struct {                        \
> #             int8_t pad[ (sizeof (register_t) < sizeof (x))  \
> #                 ? 0                 \
> #                 : sizeof (register_t) - sizeof (x)];    \

> I thought ?: were evaluated at run-time, not compile-time?

sizeof() is evaluated at compile time.

-- 
farooq <fmela0@sm.socccd.cc.ca.us>