Re: Can I assume uninitialized variable's value to be nil or 0?
Re: Can I assume uninitialized variable's value to be nil or 0?
- Subject: Re: Can I assume uninitialized variable's value to be nil or 0?
- From: Eric <email@hidden>
- Date: Wed, 17 May 2006 20:05:00 -0700
By the way, I've tested this already (it seems to be nil and 0 always).
However, I just want to make sure it's a valid assumption in general.
On 5/17/06, Eric <email@hidden> wrote:
Can I assume declared but uninitialized variable to have the value of nil
(for pointer type) or 0 (for numeric type)? Coming from Java, I was used to
make those assumptions. I'm wondering whether it's the same for Objective-C
/ C.
Thanks,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden