Memory Management Flashcards
1
Q
void *calloc(int num, int size);
A
This function allocates an array of num elements in which each size in bytes will be size
2
Q
void free(void *address);
A
This function releases a block of memory block specified by address
3
Q
void *malloc(int num);
A
This function allocates an array of num bytes and leave them uninitialized
4
Q
void *realloc(void *address, int newsize);
A
This function re-allocates memory extending it up to newsize