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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

void free(void *address);

A

This function releases a block of memory block specified by address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

void *malloc(int num);

A

This function allocates an array of num bytes and leave them uninitialized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

void *realloc(void *address, int newsize);

A

This function re-allocates memory extending it up to newsize

How well did you know this?
1
Not at all
2
3
4
5
Perfectly