1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

void pointer

Discussion in 'C' started by anilk501, Sep 13, 2007.

  1. anilk501

    anilk501 New Member

    Joined:
    Oct 3, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    1)how the free(void *ptr) determine howmany bytes need to be freed when called.
    2)is thr any differnce b/w typedef and #define?
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    The number of bites to be freed is part of an invisible (to you) overhead maintained by the heap allocation software.

    There is a huge difference between typedef and #define. The build process consists of preprocessing (before the compiler ever sees the file), compilation, linking, and possibly locating. Learn the functions of these steps, or be behind the curve of understanding.
     

Share This Page