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 / krishnachaitanya
n is 12.
because every printf() statement returns an integer value.
in the above code i.e printf("my name is %d",printf("kiran
%d",printf("kumar")));
kiran returns 5
the correct ans is
kumarkiran5 my name is 6
n=12
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
How can I insert or delete a line (or record) in the middle of a file?
How would you rename a function in C?
What is gets() function?
Why is not a pointer null after calling free?
What are dangling pointers? How are dangling pointers different from memory leaks?
Why clrscr is used after variable declaration?
Is void a keyword in c?
What is the use of in c?
largest Of three Number using without if condition?
State two uses of pointers in C?
how can use subset in c program and give more example
What is difference between array and structure in c?
What is a pragma?
Can we change the value of static variable in c?
What is the purpose of sprintf() function?