Explain working of printf?

Answer Posted / kishore

Printf is a Variadic function. Variadic functions are
functions which may take a variable number of arguments and
are declared with an ellipsis in place of the last
parameter.
int printf(char *, ...);
Uses Var_args to know the variables in the ...
In C these are defined in stdarg.h
Refer to this link http://en.wikipedia.org/wiki/Stdarg.h

Is This Answer Correct ?    24 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why use of template is better than a base class?

633


What apps are written in c++?

591


What is the extension of c++?

504


What are guid? Why does com need guids?

558


Can I make ios apps with c++?

547






Which coding certification is best?

562


How would you use the functions randomize() and random()?

617


Write a program to find the reverse Fibonacci series starting from N.

593


What is c++ redistributable?

611


Explain the difference between c & c++?

567


What is the need of a destructor?

628


What do you mean by inheritance in c++?

586


Is swift faster than c++?

550


Explain the concept of dynamic allocation of memory?

612


Describe delete operator?

607