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 does the following code do?
fn(int n,int p,int r)
{
static int a=p;
switch(n){
case 4:a+=a*r;
case 3:a+=a*r;
case 2:a+=a*r;
case 1:a+=a*r;
}
}
a.computes simple interest for one year
b.computes amount on compound interest for 1 to 4 years
c.computes simple interest for four year
d.computes compound interst for 1 year

Answer Posted / nila

d.computes compound interest for 1 year

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can I get an ansi-compatible lint?

1165


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1244


What is the difference between scanf and fscanf?

1283


What does c in a circle mean?

1089


What are the advantage of c language?

1064


I have seen function declarations that look like this

1056


Is c easy to learn?

997


What is call by reference in functions?

1466


What are the various types of control structures in programming?

1072


What is #line?

1070


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1260


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1354


What is c method?

1008


What kind of structure is a house?

1051


What are enums in c?

1217