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

Is c++ the best programming language?

542


Can non-public members of another instance of the class be retrieved by the method of the same class?

610


What is the difference between public, private, and protected access?

620


What is decltype c++?

559


What are the stages in the development cycle?

577






What is the difference between delegation and implemented-in-terms-of?

529


How do I use turbo c++?

552


What are the uses of c++ in the real world?

566


What is object in c++ wikipedia?

574


Why is c++ still used?

609


What is function overriding in c++?

606


What is searching?

659


What is vector string in c++?

578


What is the best book for c++ beginners?

579


Can the creation of operator** is allowed to perform the to-the-power-of operations?

582