top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How Realloc in c works?

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

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social 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?

+3 votes

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

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...