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

int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap
[a] 8 [b] 9 [c] 6 [d] 12 [e] 15

Answer Posted / sindhu

shobha is correct.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scope rule of function in c?

1111


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4702


In a switch statement, what will happen if a break statement is omitted?

1076


Explain the concept and use of type void.

1122


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

1165


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

2243


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1380


What is the best style for code layout in c?

1111


Write a program for Overriding.

1168


What is the difference between text and binary modes?

1202


Explain about the functions strcat() and strcmp()?

1061


Are comments included during the compilation stage and placed in the EXE file as well?

1089


What is equivalent to ++i+++j?

1103


Explain output of printf("Hello World"-'A'+'B'); ?

1503


Why we write conio h in c?

1046