title: Memory management of NSArray
body: <p>This is My code:</p>
  
  <pre><code>NSNumber *tempNum = [NSNumber numberWithInt:5];
  NSMutableArray *array = [NSMutableArray arrayWithObjects:tempNum,@"A", nil];
  tempNum = nil;
  NSLog(@"Array :%@",array);
  </code></pre>
  
  <p>and the output is :</p>
  
  <pre><code> Object :(null)
   Array :(
      5,
      A
  )
  </code></pre>
  
  <p>Can anyone give the exact explanation whether array save the reference of the object or made copy of object or something else.</p>