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 of the following progarm?



#include<stdio.h>

main( )

{

int x,y=10;

x=4;

y=fact(x);

printf(ā€œ%d\nā€,y);

}



unsigned int fact(int x)

{

return(x*fact(x-1));

}

A. 24

B. 10

C. 4

D. none

Answer Posted / kalyan chukka

A.24

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer in c?

1160


What is structure in c explain with example?

1128


What is c definition?

1225


What is preprocessor with example?

1021


What is c language and why we use it?

1032


Why is structure important for a child?

1067


If fflush wont work, what can I use to flush input?

1073


Why should I use standard library functions instead of writing my own?

1227


What are logical errors and how does it differ from syntax errors?

1261


How pointers are declared?

928


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1329


How is a structure member accessed?

1088


What is a pointer in c plus plus?

1269


Explain what are the standard predefined macros?

1095


What is the difference between union and anonymous union?

1270