malloc fr one element only...fr eg new node in linked list....garbage 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 <[email protected]>wrote:

> 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 Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Aditi Garg
Undergraduate Student
Electronics & Communication Divison
NETAJI SUBHAS INSTITUTE OF TECHNOLOGY
Sector 3, Dwarka
New Delhi

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to