开发者

Question about syntax when creating objects/variables

开发者 https://www.devze.com 2023-02-11 19:38 出处:网络
I\'m wondering if there really is a difference between these two lines for example: NSNumber* myNumber = ......

I'm wondering if there really is a difference between these two lines for example:

NSNumber* myNumber = ...... NSNumber *myNumber = ......

I ask, because I'm very new and have been readi开发者_运维百科ng a book on it, and it seems the author started off putting the asterisk in front of the object's name, but then later on started put it after the data type.

Is it just a format issue?


NO

And you can even use:

NSNumber * myNumber = 
0

精彩评论

暂无评论...
验证码 换一张
取 消