deo sharma wrote:
> the question still remains that why we need a malloc when calooc will 
> don the same thing by inistialising the memory with zero rther than some 
> random value.
> 
there are circumstances when zeroing out allocated memory is not 
required, so malloc is used. and these circumstances are when the 
allocated memory will be stuffed wil data as soon as it is allocated. So 
there is no need to zero out everything and waste memory cycles

Kapil
-- 
PS:
1. Google: Feel free to Google before posting. http://www.google.com

2. Posting: I suggest the group members to avoid top posting, as this 
pushes the original question to the bottom. While any body would prefer 
to have the main question at the top, and subsequent replies added to 
the bottom, so that it is easy to comprehend the flow of information.

3. Do not Hijack threads. If you need to ask a fresh question, do a 
little effort of moving mouse to the New or Compose button instead of 
Reply. Do not start a New message or thread by hitting "Reply" in your 
mail client and changing the subject. When you do this, you mess up 
other participant's ability to read mail in a threaded fashion.

4. HTML Mail: HTML is not email, and email doesn't contain HTML, so 
please turn HTML formatting OFF in your email client. Please Do not use 
italics, colors, bold, fonts, pictures, sounds, or other HTML elements. 
Please use only 7-bit text when sending email to the lists.

Thanks






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

To unsubscribe : [EMAIL PROTECTED]

 
Yahoo! Groups Links

<*> To reply to this message, go to:
    
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4830
    Please do not reply to this message via email. More information here:
    http://help.yahoo.com/help/us/groups/messages/messages-23.html

<*> To visit your group on the web, go to:  
    http://groups.yahoo.com/group/Programmers-Town/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to