Explain working of printf?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ilakya.g
It is used to print the statement within the codes of
printf statement.
| Is This Answer Correct ? | 24 Yes | 6 No |
Answer / karan sahu
printf is a library function which printed formatted output....
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / kamikaze
Printf is a std lib func. It prints everything in the
Inverted commas until a format specifier or a escape
sequence is encountered.
| Is This Answer Correct ? | 7 Yes | 6 No |
Answer / mony
printf are inbuilt functions and it is used to get output
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / hyrish
The function printf
is defined by stdio.h
header file. It is
the most commenly
used output stement
in c language.
| Is This Answer Correct ? | 1 Yes | 2 No |
Answer / p.madhupriya
printf is using to print the statement only.
| Is This Answer Correct ? | 0 Yes | 8 No |
You run a shell on unix system. How would you tell which shell are you running?
State the difference between pre and post increment/decrement operations.
check whether a no is prime or not.
What is iomanip c++?
How to implement flags?
What is an arraylist c++?
What do you mean by C++ access specifiers ?
Write any small program that will compile in "C" but not in "C++"
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
What is object slicing and how can we prevent it?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
why all c++ program must have default constructor?