fn f(x)

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way to comment out a section of code that contains comments?

798


What are categories used for in c?

582


What is a protocol in c?

569


Describe dynamic data structure in c programming language?

614


What is extern keyword in c?

657






What is wrong with this initialization?

605


What is the most efficient way to store flag values?

697


What is the use of linkage in c language?

625


Is c pass by value or reference?

613


What is difference between structure and union with example?

608


Explain how can you tell whether a program was compiled using c versus c++?

599


Why calloc is better than malloc?

582


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

5832


What do you mean by a local block?

641


What are directives in c?

562