/*what is the output for the code*/
void main()
{
int r;
r=printf("naveen");
r=printf();
printf("%d",r);
getch();
}
Answer Posted / amegha
r=printf() sttmnt will produce an error as - too few
parameters in printf().
It needs any argument value.
r=printf("naveen") returns the no of characters printed.
here 6.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which is best linux os?
What should malloc() do?
What is wrong with this program statement? void = 10;
What is fflush() function?
Is there a way to switch on strings?
What is the purpose of the preprocessor directive error?
can anyone please tell about the nested interrupts?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What is the use of volatile?
how could explain about job profile
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Explain how can a program be made to print the line number where an error occurs?
What standard functions are available to manipulate strings?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include