Results 1 to 1 of 1

Thread: What is the difference between realloc() and free()?

  1. #1
    Banned
    Join Date
    Aug 2015
    Location
    Banglore
    Posts
    110

    What is the difference between realloc() and free()?

    Free() function is used to free the memory space that allocated by malloc() or calloc() function.
    Realloc() function is to resize the memory.












    Air Sofa Cum Bed | Hair Building Fiber | Sandhi Sudha
    Last edited by chinmay; 04-26-2016 at 11:30 AM.

Similar Threads

  1. linux - Strange Behavior From realloc()
    By sagar in forum Unix and Linux basics
    Replies: 0
    Last Post: 03-29-2014, 11:11 PM
  2. Replies: 0
    Last Post: 12-12-2013, 03:10 PM
  3. linux - realloc: invalid next size; memcpy
    By sagar in forum Unix and Linux basics
    Replies: 0
    Last Post: 09-23-2013, 06:50 PM
  4. how to use realloc example
    By Maha in forum C, CPP Programs
    Replies: 0
    Last Post: 03-06-2013, 10:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •