objective c - What's the difference? -
I will propose your question by saying that I am an early-purpose developer. What is the difference between:
NSString * foo;
NSString * foo;
NSString * foo;
Is there any difference?
NSString * name only all of the three names named a variable * This is actually a matter of style preference.
Some people like to like star next to this type that this is an indicative type.
Some people need to star in multiple announcements, such as:
NSString, a star icon next to the variable to emphasize language requirements. * Foo, * times;
My personal preference is actually with one place before and after the first starring of your examples, using a starter just before the variable to use the pointer in formatting Do I avoid declaring more than one variable in the same announcement.
Comments
Post a Comment