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);
Answers were Sorted based on User's Feedback
Answer / raghav
hi the answer is bit scribbling
answer is
kumar kiran 5my name is 7/n12/n
Is This Answer Correct ? | 8 Yes | 3 No |
Answer / 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 |
Answer / 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 |
What is the use of gets and puts?
Is a house a shell structure?
WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?
WHAT IS HIGH LEVEL LANGUAGE?
Is c# a good language?
what is the role you expect in software industry?
main() { int x, arr[8]={11,22,33,44,55,66,77,88}; x=(arr+2)[3]; printf(“%d”,x); }
Tell me the use of bit field in c language?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What do you mean by dynamic memory allocation in c? What functions are used?
print the table 5 in loops
what are the stages of compilation