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
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is variable declaration and definition in c?
What is a function simple definition?
How can I write functions that take a variable number of arguments?
What is the use of a ‘ ’ character?
How can a program be made to print the line number where an error occurs?
When the macros gets expanded?
What is null pointer in c?
What is difference between function overloading and operator overloading?
Does c have function or method?
What are multidimensional arrays?
how can f be used for both float and double arguments in printf? Are not they different types?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
What is sorting in c plus plus?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list