On Saturday 06 Feb 2010, Ashish SHUKLA wrote: > [snip] > You include stdio.h to include the prototypes of the functions, but > in above case you already declared the prototype of the function > which you invoked, so no need to include the header file.
Well, you also include it to define the FILE data structure and the named streams (stdin, stdout and stderr), but if you're not using them you can happily skip stdio.h. Heck, you can skip the prototype too and all gcc will do is whine a bit if strict ANSI is set (IIRC). Bad programming practice, though. Regards, -- Raj -- Raj Mathur r...@kandalaya.org http://kandalaya.org/ GPG: 78D4 FC67 367F 40E2 0DD5 0FEF C968 D0EF CC68 D17F PsyTrance & Chill: http://schizoid.in/ || It is the mind that moves _______________________________________________ Ilugd mailing list Ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd