Sunday, May 10, 2009

Can we write a function similar to printf() in C Language?

can we write a function similar to printf()


as it should take variable number of arguments and it will show the output on the screen...


if possible please provide the code

Can we write a function similar to printf() in C Language?
Yes. To use a variable number of arguments use %26lt;stdarg.h%26gt;. Once you have that, it's pretty straightforward to send strings to stdout.
Reply:just look at the source of stdio.h u'll find the code,, no big deal
Reply:cprintf
Reply:Try 2 use the (stdout) stream.

potential breakup song

No comments:

Post a Comment