objective c - What exactly is happening when we do if(aValue) where aValue is a pointer? -


is implicit conversion/coercion of pointer happening? if type?

is exactly equivalent if(avalue != nil) in both cases?

is equivalent if(avalue != nil) in both cases?

yes. you're testing pointer non-zero value. garbage. point random object. doesn't matter.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -