C Programming - Memory Allocation - Discussion

Discussion Forum : Memory Allocation - Yes / No Questions (Q.No. 1)
1.
Can I increase the size of dynamically allocated array?
Yes
No
Answer: Option
Explanation:
Use realloc(variable_name, value);
Discussion:
6 comments Page 1 of 1.

Durgam_anil said:   1 decade ago
By using the realloc() we can increase the dynamically allocated memory.

//realloc is used for to allocate the memory already it is allocated and then we are modifing that memory...

Ashwini said:   9 years ago
With out using the realloc can I increase the size of dynamically allocated array?

Raj said:   6 years ago
We can use realloc to alter the memory previously allocated using malloc/calloc.

Saranya said:   1 decade ago
With out using realloc can I increase the size of dynamically allocated array?

Tushar said:   1 decade ago
Anyone please give one example code for this?

Rajjankumarpandey said:   1 decade ago
Can we use melloc to increase the size.

Post your comments here:

Your comments will be displayed after verification.