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 meant by 'bit masking'?

1396


Why do we use int main?

1107


code for quick sort?

2046


What is the difference between #include

and #include “header file”?

1039


What is optimization in c?

1033


Why do we use & in c?

1008


What is wrong with this declaration?

1113


What are the advantages and disadvantages of pointers?

1076


What are different types of pointers?

1082


What is array in c with example?

1280


What are loops c?

1062


Explain spaghetti programming?

1269


What is character constants?

1193


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

1229


What are operators in c?

1034