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 |
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
What are the various storage classes in C++?
What is copy constructor? Can we make copy constructor private in c++?
Write a program in C++ for Fibonacci series
0 Answers Axtria, ITC Indian Tobacco Company,
What is the identity function in c++? How is it useful?
What do you understand by zombie objects in c++?
What is tellg () in c++?
How many characters are recognized by ANSI C++?
How do I run a program in notepad ++?
make a middle node of doubly linklist to the top of the list
Any one help me plzzzz..... i have an assignment...... that is ______*********_______ Write a program that takes an equation as a string and does the following: Solve 8 parts to achieve 100% 1 - 5 are compulsory. Input: 2x^2+3x+4=0 1) read a quadratic equation 2) print its coefficients (coefficients range is 0 to 9) 3) print the solution of the equation 4) tackle imaginary solution e.g. ( (2+3i), (2-3i) ) 5) allow spaces within the input 6) after solving one equation; ask for an other, terminate on empty line. * 7) tackle negative values as well * 8) tackle more than one values of same exponent (e.g. 2x^2 + 3x^2 + 4x + 3 = 0)* 9) use strtok * 10) print the solution in fractions e.g. 1.5 should be printed as (1)1/2 * 11) coefficient can be greater than 9** 12) values on both sides of the ‘=’ sign** 13) plot the graph of the polynomial** 14) use a compiler other than Borland** 15) submit before May 25, 2009 11:59 PM ** _______******________ plz send me c++ code at sweety.alvi@gmail.com
Explain the scope resolution operator?