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 the different bitween abap and abap-hr?

2337


What is the general form of function in c?

1022


How to establish connection with oracle database software from c language?

2203


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1996


Write a Program to find whether the given number or string is palindrome.

1280


List some applications of c programming language?

958


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1022


What do you mean by scope of a variable in c?

1015


What are Macros? What are its advantages and disadvantages?

1164


What are linked lists in c?

1131


Can you write the function prototype, definition and mention the other requirements.

1137


What is difference between class and structure?

1116


Explain what are the standard predefined macros?

1120


Why is c known as a mother language?

1243


What is calloc()?

1073