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 -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -