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 |
Why do we use double in c++?
What is a smart pointer?
Are c and c++ different?
What are the 3 levels of programming languages?
How do you traverse a btree in backward in-order?
A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.
How const int *ourpointer differs from int const *ourpointer?
What are the benefits of c++?
write a program in c++ to generate imp z y x w v w x y z z y x w x y z z y x y z z y z z
Who discovered c++?
How to declare a pointer to an array of integers?
How Virtual functions call up is maintained?