[algogeeks] differnce between malloc calloc and new

2011-08-13 Thread Ankur pratik
what is d basic diff between malloc calloc and new command as all are used for dynamic allocation -- Warm Regards-- Ankur Pratik Computer Science Engg Dept Undergraduate Student National Institute of Technology Durgapur India -- You received this message because you are subscribed to the

Re: [algogeeks] differnce between malloc calloc and new

2011-08-13 Thread aditi garg
malloc fr one element only...fr eg new node in linked listgarbage values assigned calloc can be used to dynamically allocate memory fr arrays...values assigned to 0 by default new same as malloc except dat it is used in c++ and malloc in C On Sat, Aug 13, 2011 at 10:32 PM, Ankur pratik