Hi Uma
If you look at the help documentation for these functions, u wd see that they have (...) as their signature after the function name and 1 argument which is char array. This means that they can accept variable no. of arguments...Remember 3 dots not more nor less.. Soo, the 1st argument for scanf and printf is " " (string) and can be followed by any no. of arguments... For more detailed discussion, search for variable arguments on the web... Thanks!! and have a nice day!! Jaspreet On Thu, 16 Dec 2004 12:13:35 -0800 (PST), Uma D <[EMAIL PROTECTED]> wrote: > Hi all, > > How is it, that, we are able to call printf() and scanf() functions, with > any number of arguments? > > Then, is it possible to define a user-defined function which can accept > different number of arguments, like that of printf() and scanf()? > > With thanks, > Uma > > ________________________________ > Do you Yahoo!? > Yahoo! Mail - Easier than ever with enhanced search. Learn more. > > To unsubscribe : [EMAIL PROTECTED] > > > > > Yahoo! Groups Sponsor > ADVERTISEMENT > > ________________________________ > Yahoo! Groups Links > 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 the Yahoo! Terms of Service. > > ------------------------ 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=4579 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/
