Can you write function similar to printf()?

Can you write function similar to printf()?

Here, we write a program similar to printf().

#include 
int printf(const char * restrict fmt, ...) 
{
   va_list list;
   int i;
   va_start(list, fmt);
   i = vfprintf(stdout, fmt, list);
   va_end(list);
   return i;
}

By:Vivek Kr. Agarwal
Date:2006-01-09 00:00:00

PUTS()

By:VIJAY.VIKRAM
Date:0000-00-00 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher