Results 1 to 6 of 6

Thread: C Questions

  1. #1
    Join Date
    Jun 2008
    Location
    Bangalore, India
    Posts
    53

    Default C Questions

    Hi Guys,

    Come together and share some C programming questions....

    Regards

  2. #2
    Join Date
    Jun 2008
    Location
    Bangalore, India
    Posts
    53

    Default

    How to destroy dynamically allocated memory (memory allocated by malloc()) with out using free() ?

  3. #3
    Join Date
    Mar 2009
    Posts
    11

    Default

    Hi,

    I think there is no way to do that without using the free function...

  4. #4
    Join Date
    Jun 2008
    Location
    Bangalore, India
    Posts
    53

    Default

    yes we can destroy the memory using realloc(*ptr, NULL). but its not possible in C89.

    Regards
    Fazal C.A

  5. #5
    Join Date
    Oct 2010
    Location
    thailand
    Posts
    7

    Default

    very good .

  6. #6
    Join Date
    Oct 2010
    Posts
    3

    Default

    good job... that's amazing
    you win a cookie

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
  •