Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Help Members By Posting Answers For Below Questions

please send me the code for multiplying sparse matrix using c

2173


What is the difference between array and structure in c?

1163


Wt are the Buses in C Language

3215


What are the types of data types and explain?

1088


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

1194


What is the condition that is applied with ?: Operator?

1129


largest Of three Number using without if condition?

1598


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1139


What is c token?

1064


How can I read a binary data file properly?

1164


Can a pointer be null?

1027


How can I read in an object file and jump to locations in it?

1029


How many types of errors are there in c language? Explain

985


Can two or more operators such as and be combined in a single line of program code?

1369


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.

2642