How can I check if an int has been assigned a value? Or is still un defined?
Thanks
How can I check if an int has been assigned a value? Or is still un defined?
Thanks
You can't. There is no concept of undefined or null int.
Objective-C is basically, C. So, initially, and unasigned int will have the value of whatever there is on that part of the memory. If you need it to have a starting value, you should explicitly set one.