|
| Total Answers and Comments: 2 |
Last Update: August 18, 2008 Asked by: avnish kumar |
|
| | |
|
No best answer available. Please pick the good answer available or submit your answer. |  Latest Answer : printf(",...);Here '...' is the ellipsis operator indicates that it can accept any number of arguments of any type ...
printf() Function Return Value | |
What is the return value from printf() function?
printf function always returns the number of characters printed. Let us understand this with an example:
main()
{
int a=10;
printf("%d",printf("%d %d %d", a,a,a));
}
In this above program the inner printf i |
|
What are the Format Specifiers used with printf? | |
There are several format specifiers available in printf. The format specifier used varies depending on the data type used for printing. The given below are some of the format specifiers used with printf in C program.
For integer data type the format specifier used with printf is %d or %i
For float |
|
printf and sprintf | |
What is the difference between printf and sprintf?
sprintf: Writes formatted data to a character string in memory instead of stdout
Syntax of sprintf is:
#include <stdio.h>
int sprintf (char *string, const char *format
[,item [,item]...]);
Here,
String refers to the pointer to a |
|
SDLC - Prototype Model | |
In the traditional SDLC, software is created on a well planned pattern. There will be planning, consultation, creation, testing, documentation and launching. This pattern is seen in most development software. Since it’s planned right from the start, it should be efficient as planned. When |
| |
|