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);

Answers were Sorted based on User's Feedback



what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %..

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

what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %..

Answer / nish

kumarkiran 5my name is 7
n=12

Is This Answer Correct ?    1 Yes 1 No

what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %..

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

what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %..

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

Post New Answer

More C Interview Questions

Explain how can I make sure that my program is the only one accessing a file?

0 Answers  


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

0 Answers   Mindteck,


Explain union.

0 Answers  


what is difference between ANSI structure and C99 Structure?

1 Answers   Wipro,


a=5 a=a++/++a

14 Answers   Bhel,


Write a program that an operator and two operands read from input operand operator on the implementation and results display.

0 Answers  


Why c is called top down?

0 Answers  


Explain the process of converting a Tree into a Binary Tree.

0 Answers   Ignou,


What is the main differences between C and Embedded C?

9 Answers  


write a program to gat the digt sum of a number (et. 15= >1+5=6)

2 Answers  


matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.

5 Answers   TCS,


What is the purpose of void pointer?

0 Answers  


Categories