title: Local variables set to nil? (Objective-C)
body: <p>I'm reading a book on Objective-C and the author said that if local variables aren't assigned a value they will be set to nil, but static variables will be set to zero. So, I set up <code>int a</code> and didn't assign it a value. Then <code>NSLog(@"%i", a)</code> to display it and <code>a</code> was displayed as zero. I was a little confused on that and I was wondering if someone could clarify it for me?</p>