fn f(x)

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

Answer Posted / kamal

f(x-1)+x

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1778


What is the difference between near, far and huge pointers?

623


How do I use void main?

620


What is the purpose of sprintf?

607


What is hash table in c?

560






What is getch c?

843


Explain what are the __date__ and __time__ preprocessor commands?

583


Why is struct padding needed?

621


What is a macro in c preprocessor?

616


Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80

2546


Can a program have two main functions?

561


What are data types in c language?

578


What is data structure in c programming?

561


Why do we use namespace feature?

573


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1626