开发者

What does the asterisk before variable signify?

开发者 https://www.devze.com 2023-01-17 11:48 出处:网络
Does anyone开发者_如何转开发 know where I can find documentation about what the asterisk before variables is used for.I don\'t understand it and it\'s starting to become a problem because I have notic

Does anyone开发者_如何转开发 know where I can find documentation about what the asterisk before variables is used for. I don't understand it and it's starting to become a problem because I have noticed you don't need it for all types for e.g. BOOL doesn't return it.


It's C notation for a pointer.

You don't need it for a BOOL because it is not an object and so it isn't passed by reference

Have a look at the Introduction to Objective-C part of the documentation.

0

精彩评论

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