void pointer

Go4Expert Member
13Sep2007,08:47   #1
anilk501's Avatar
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?
Team Leader
13Sep2007,08:56   #2
DaWei's Avatar
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.