Re: Is This Right?
Re: Is This Right?
- Subject: Re: Is This Right?
- From: Michael Rogers <email@hidden>
- Date: Tue, 5 Jun 2001 14:54:30 -0500
On Tuesday, June 5, 2001, at 12:57 PM, Brian Howard wrote:
Do I understand this right? Can these two lines of code:
NSMutableArray *myArray;
myArray = [[NSMutableArray alloc] init];
be combined thus:
NSMutableArray *myArray = [[NSMutableArray alloc] init];
Yes, there's no problem with declaring and initializing a variable in a
single statement.
Michael
------------------------------
Dr. Michael P. Rogers
Mathematics & Computer Science, Millikin University
email@hidden
http://math.millikin.edu/mprogers
217-424-6327(W) 309-828-8655 (H) 309-825-6454(C)