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...


fn f(x)

{ if(x<=0)
return;
else f(x-1)+x;
}

Answers were Sorted based on User's Feedback



fn f(x) { if(x<=0) return; ..

Answer / guest

fn(5)
i guess

Is This Answer Correct ?    16 Yes 2 No

fn f(x) { if(x<=0) return; ..

Answer / jai

15

Is This Answer Correct ?    4 Yes 1 No

fn f(x) { if(x<=0) return; ..

Answer / gupta

x(x+1)/2

Is This Answer Correct ?    4 Yes 1 No

fn f(x) { if(x<=0) return; ..

Answer / kamal

f(x-1)+x

Is This Answer Correct ?    2 Yes 1 No

fn f(x) { if(x<=0) return; ..

Answer / hari

ans is 16384

for further queries and discussions, just check these out !!!

http://forum.campusmaniac.com/
http://www.campusmaniac.com/

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

1 Answers   CMS,


print ur name without using any semicolon in c/c++....

21 Answers   Bosch, TCS, Wipro,


What is the use of the restrict keyword?

1 Answers  


How do you access command-line arguments?

1 Answers  


How many loops are there in c?

0 Answers  


What is the difference between mpi and openmp?

0 Answers  


how do you execute a c program in unix.

0 Answers  


print the table 5 in loops

3 Answers  


write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .

1 Answers   Subex,


write a programe returns the number of times the character appears in the string

2 Answers  


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

0 Answers  


How can you convert integers to binary or hexadecimal?

0 Answers  


Categories