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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -