answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What is the function to allocate memory?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What function allocate n bytes in heap memory?

malloc


What are the different function used for dynamic memory allocation?

alloc :- to allocate memory. calloc :- to free the memory.


What is the process of allocation of memory for an integer type variable?

To dynamically allocate memory, use the following function (stdlib.h I believe): int *variable1 = malloc(sizeof(int));


What function is used to release the memory on heap?

The free() function releases memory obtained with the malloc() family of functions. The delete and delete [] operators release memory obtained with the new operator. Note: realloc() can allocate and free memories as well as reallocate.


How you allocate the memory in java?

In Java we need not allocate memory manually. The JVM would take care of allocating as much memory that your objects would require automatically.


What is Memory management in ms dos?

MS-DOS does not have built-in memory management.


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.


When memory allocate to Static data in c?

Compilation time.


How much memory does gmail allocate to a user?

7000mb may be


What is the difference between allocating memory through heap and malloc?

Nothing, malloc does allocate memory from the heap.


What are new and delete operators in c plus plus?

New and Delete are the memory management operators in c++,like c language we use malloc() and calloc() functions to allocate memory and free() functiong to release the memory similarily we use new to allocate memory in C++ and Delete to release the allocated memory....


Can an application or device driver specify if it will use physical memory or the swap file for its data?

No, because the O/S call to allocate memory can allocate either physical memory OR swap file space. It's under O/S control, not the application.