main return value, struct padding
Jarrett Billingsley
jarrett.billingsley at gmail.com
Tue Jan 20 08:48:29 PST 2009
On Tue, Jan 20, 2009 at 10:25 AM, bearophile <bearophileHUGS at lycos.com> wrote:
> Bill Baxter:
>
>> What does it return now?
>
> A random int, I presume.
>
>
>>I always assumed returned zero for void main.<
>
> Me too.
I've only ever seen void mains return 0. I think they used to return
random ints but that was fixed long ago. Maybe it's different on
Linux?
More information about the Digitalmars-d-learn
mailing list