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 use of void pointer and null pointer in c language?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What is exit() function?
What is the difference between memcpy and memmove?
Can we initialize extern variable in c?
What is maximum size of array in c?
Can you apply link and association interchangeably?
How to establish connection with oracle database software from c language?
How can type-insensitive macros be created?
what are the advantages of a macro over a function?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What is structure in c explain with example?
How do you determine whether to use a stream function or a low-level function?
What is equivalent to ++i+++j?
What is #define used for in c?