dickiebird
Programmer
Hi
Can anyone explain why we have malloc and its associated functions ??
Every book I've read talks about HOW at length, without going into the WHY
I've re-written,copied,created new progs, with struct declarations etc, and never used malloc, free etc
But with other programs, I've copied,cribbed etc,where malloc is used, without ever understanding why we allocate space in memory. My experience on unix is AIX and HPUX.
Anyone point me in the right direction - to a link to C tutorials perhaps ??
Regards
DickieBird
Can anyone explain why we have malloc and its associated functions ??
Every book I've read talks about HOW at length, without going into the WHY
I've re-written,copied,created new progs, with struct declarations etc, and never used malloc, free etc
But with other programs, I've copied,cribbed etc,where malloc is used, without ever understanding why we allocate space in memory. My experience on unix is AIX and HPUX.
Anyone point me in the right direction - to a link to C tutorials perhaps ??
Regards
DickieBird