When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?



When reallocating memory if any other pointers point into the same piece of memory do you have to re..

Answer / Rupender

"If you reallocate memory and it overlaps with existing memory that another pointer points to, you are responsible for updating that pointer. The C library does not adjust other pointers automatically when memory is reallocated."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Convert a distance from miles to kilometers .there are 5280 feets per mile,12 inches per foot .2.54 centimeters per inch and 100000centimeters per kilometer

0 Answers   TCS,


How to write a program to receive an integer & find its octal equivalent by using for loop?

1 Answers   Google,


For what purpose null pointer used?

1 Answers  


WHAT IS HIGH LEVEL LANGUAGE?

2 Answers  


we all know about the function overloading concept used in C++ and we all learnt abt that.... but that concept is already came in C in a very smaller propotion ... my question is IN WHICH CONCEPT THERE IS A USE OF FUNCTION OVERLOADING IS USED in C language?????????????

4 Answers   Google,


What do you know about the use of bit field?

1 Answers  


What are identifiers c?

1 Answers  


C program to perform stack operation using singly linked list

3 Answers  


What is the right type to use for boolean values in c? Is there a standard type?

1 Answers  


what is void pointer?

1 Answers   Wipro,


What is pointers in c?

1 Answers  


What are the 5 organizational structures?

1 Answers  


Categories