GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 442 of 453    Print  
Reallocating memory
When reallocating memory if any other pointers point into same piece of memory do you have to readjust these pointers or do they get readjusted automatically?


  
Total Answers and Comments: 3 Last Update: July 04, 2009     Asked by: Ajay Kanse 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 30, 2009 05:38:13   #1  
pawan.yalawarthy Member Since: March 2009   Contribution: 1    

RE: Reallocating memory
Any number of pointers can point to same memory location
 
Is this answer useful? Yes | No
June 25, 2009 03:43:45   #2  
alokag Member Since: June 2009   Contribution: 5    

RE: Reallocating memory
While reallocating there is no readjustments. The OS will just search for the required memory block(not in use) & if available pass its pointer to the user.

Nb: It CAN be the same pointer you have before reallocation.

 
Is this answer useful? Yes | No
July 04, 2009 16:00:08   #3  
abhimanipal Member Since: July 2009   Contribution: 22    

RE: Reallocating memory
If any pointers are pointing to the old memory location they have to be adjusted. C won't do it for you
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape