answersLogoWhite

0


Best Answer

malloc/calloc/realloc will return NULL

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What if happen when you allocate memory by using malloc or calloc when the momory is not available contigiously?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What will happen if you allocate memory using new and free it using free or allocate sing calloc and free it using delete?

The C++ new uses malloc internally to allocate memory and the C++ delete uses free internally to revoke memory. However, they are not interchangeable and so memory allocated with new MUST be revoked with delete. If you mix them up, you will have a memory leak! Haya.


What is malloc vs calloc?

malloc allocate a memory section whereas memset manipulate the content of the memory section, (for example fill a memory section pointed by pointer ptr with 0, we use memset(ptr,0,sizeof(ptr_data_type)) A memory section must be allocated(using either 'malloc' or 'new' in C++) before memset can be used on it.


What is the adverb of available?

The adverb of the word available is availably. This adverb tells us when something will or is able to happen.


What will happen without energy?

Nothing. For anything to happen at all, energy - more specifically, available energy - is required.


What would happen if these technologies were not available?

Well for a start we could not do half the stuff we can do now if technology was not available and quality of life would be poorer


What would happen if there a lot of food available to chimpanzees for one year?

They would eat it.


In inhaling what will happen to maintain homeostasis?

Oxygen enters the blood to become available to cells.


If you create an allocation rule to link to the office supplies mcc group to your purchasing department accounting code what will happen to transactions when they enter access online?

Access Online will automatically allocate all office supply transactions to the Purchasing Department's accounting code


If you created an allocation rule to link the Office Supplies MCC group to your Purchasing Department accounting code what will happen to transactions when they enter Access Online?

Access Online will automatically allocate all office supply transactions to the Purchasing Department's accounting code


When is San Andreas available for the PSP?

Just RockstarGames knows. I guess it wil never happen.


What do you think will happen when newspaper is not available?

people will start to get more TVs and watch local and worldwide newes.


What do you think would happen if the abiotic factors in an ecosystem was not readily available to organisms?

becuz im hungry