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
What is a const pointer in c?
What is local and global variable in c?
What are the uses of null pointers?
What is chain pointer in c?
Is it better to use malloc() or calloc()?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Differentiate between a structure and a union.
How can I sort more data than will fit in memory?
Write a program to swap two numbers without using third variable?
What are runtime error?
What is atoi and atof in c?
What Is The Difference Between Null And Void Pointer?
What is an arrays?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is the use of a static variable in c?