Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   void pointer (http://www.go4expert.com/forums/void-pointer-t6337/)

anilk501 13Sep2007 08:47

void pointer
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?

DaWei 13Sep2007 08:56

Re: void pointer
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.

All times are GMT +5.5. The time now is 00:37.