what is the output on the screen?
int n;
n=printf("my name is %d",printf("kiran %d",printf("kumar")));
printf("\n %d \n",n);
Answer Posted / kirankumaryakkala
see the printf defination at stdio.h
its, int printf(const char *,...)
//printf returns no of charecters written to the screen
// and ... represents variable no of arguments
//now every printf returns one integer corresponding to the
no of charecters written on the screen.
its simple , now u can guess
try it.
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
Are local variables initialized to zero by default in c?
show how link list can be used to repersent the following polynomial i) 5x+2
What is extern variable in c with example?
How do I get an accurate error status return from system on ms-dos?
Write a c program to demonstrate character and string constants?
What are # preprocessor operator in c?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
Can variables be declared anywhere in c?
Explain the binary height balanced tree?
What is the default value of local and global variables in c?
What does emoji p mean?
Write a program for finding factorial of a number.
How can I find out if there are characters available for reading?
How would you use the functions fseek(), freed(), fwrite() and ftell()?