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?
Answer: Option
Explanation:
Use realloc(variable_name, value);
Discussion:
6 comments Page 1 of 1.
Raj said:
6 years ago
We can use realloc to alter the memory previously allocated using malloc/calloc.
Ashwini said:
9 years ago
With out using the 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.
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...
//realloc is used for to allocate the memory already it is allocated and then we are modifing that memory...
Saranya said:
1 decade ago
With out using realloc can I increase the size of dynamically allocated array?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers