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
please send me the code for multiplying sparse matrix using c
What is the difference between array and structure in c?
Wt are the Buses in C Language
What are the types of data types and explain?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What is the condition that is applied with ?: Operator?
largest Of three Number using without if condition?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is c token?
How can I read a binary data file properly?
Can a pointer be null?
How can I read in an object file and jump to locations in it?
How many types of errors are there in c language? Explain
Can two or more operators such as and be combined in a single line of program code?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.