top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How Realloc in c works?

+2 votes
344 views
How Realloc in c works?
posted May 5, 2014 by Vishvachi Tiwari

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Realloc() system call is used to increase the size of allocated size earlier.
When user figures out that the earlier allocated dynamic memory is not able to fulfill the current requirement. It calls to realloc() .

answer May 5, 2014 by Harshita
Similar Questions
+5 votes

Can we realloc a string inside a structure?

struct info
{
     char name[20];
     int age;
     char address[20];
}; 

struct info d[10];

I want to realloc name, how can I do it?

0 votes

How can I write an ASSEMBLER in C programming language for calculating mathematical operations?

+3 votes

How to print current date and time in C/C++, sample program will help?

...