iphone - What is the difference between primitive data type vs an non primitive data type(apple defined data type)? -


what's basic difference between two..? nice if can explain using example of nsinteger , nsnumber.. thanks

the main difference related stay in memory, objects stored in heap while value type stored directly in stack ...

heap : area of memory used dynamic memory allocation.

stack : section of memory allocated automatic variables within functions. data stored in stack using last in first out (lifo) method.

about nsinteger , nsnumber :

nsinteger nothing more synonym long integer, while nsnumber objective-c class, subclass of nsvalue specific.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -