On 6 August 2011 23:28, aditi garg <[email protected]> wrote:
> I have read that to avoid multiple declaration error we write #pragma > once in header files or use #ifndef and #def to make sure that the > header file is included only once... > i tried running a prog in whch i included stdio.h thrice bt it dint gv > any error...does dat mean we have #pragma once in every header file?? > though #pragma once is not a documented standard, so I doubt it would have been used in stdio.h. they must be having #ifndef in it To answer your specific question, yes those headers do have preprocessors to prevent multiple includes > > -- > 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. > > -- Regards Siddharth Srivastava -- 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.
