From: shiffy jose [mailto:[EMAIL PROTECTED] 

>Hi,
>    I am a new member of this group ,can anyone clear the 
>following doubts

I note your compiler doesn't have easily accessable help files where
such answers may be easily found. Could I suggest you locate a compiler
that does, or maybe use Google next time?

>1)what is the difference b/w malloc & calloc.

calloc() effectively performs malloc() then sets the memory return to
all-bits-zero. Note that this does not mean that the resultant block of
memory is 'value-zero' for all data types, for example, null pointers
need not be represented by all-bits-zero.

>2)what is the difference b/w strdup & strcpy

strcpy() is a Standard function. strdup() isn't. 

strcpy() must be passed a (large enough) buffer into which the string is
placed.
strdup() returns a new buffer (using malloc()) into which the string is
placed - the caller must call free() on this buffer when the string is
finished with.

>3)what is static identifier?

Depends on where it's used. 
  At file scope it means the variable/function can only be accessed from
within that source file. (internal linkage)
  At class scope it is:
      a function that doesn't take a 'this' pointer as a hidden
parameter, but still has access to all private members. It can therefore
be called without an instance of the class.
      a variable that is shared between all instances of that class.
  At function scope it means that the variable retains its value from
one call to the next.
  
--
PJH

"During my service in the United States Congress, I took the initiative
in creating the Internet." 
    - Al Gore 





Alderley plc, Arnolds Field Estate, The Downs, Wickwar, Gloucestershire, GL12 
8JD, UK
Tel: +44(0)1454 294556 Fax: +44 (0)1454 299272

Website : www.alderley.com  Sales : [EMAIL PROTECTED] Service : [EMAIL 
PROTECTED]

This email and its contents are confidential and are solely for the use of the 
intended recipient. If you are not the original recipient you have received it 
in error and any use, dissemination, forwarding, printing or copying of this 
email is strictly prohibited. Should you receive this email in error please 
immediately notify [EMAIL PROTECTED]

This email has been scanned for viruses, however you should always scan emails 
with your own systems prior to opening.









------------------------ 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=4918
    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