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

Answers were Sorted based on User's Feedback



int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / sindhu

shobha is correct.

Is This Answer Correct ?    6 Yes 0 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / shobha

ans is 9

Is This Answer Correct ?    4 Yes 0 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / hussain reddy

9

Is This Answer Correct ?    2 Yes 0 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / mannucse

a

Is This Answer Correct ?    2 Yes 1 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / tej

ans is 9

Is This Answer Correct ?    1 Yes 0 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / mazhar

fn name and variable name are same it get overloaded..

by changing the variable name the ans will be: 9

Is This Answer Correct ?    1 Yes 0 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / ravinderreddy

ans: b

Is This Answer Correct ?    0 Yes 0 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / sundar

8

Is This Answer Correct ?    0 Yes 0 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / vint

Ans: 9

Is This Answer Correct ?    0 Yes 0 No

int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the..

Answer / arunthathi

sindhu is correct

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

What is identifiers in c with examples?

0 Answers  


How can I write a function that takes a format string and a variable number of arguments?

0 Answers  


what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?

1 Answers  


Can an array be an Ivalue?

0 Answers   EXL,


what is the output of the program and explain why?? #include<stdio.h> void main ( ) { int k=4,j=0: switch (k) { case 3; j=300; case 4: j=400: case 5: j=500; } printf (ā€œ%d\nā€,j); }

14 Answers   Oracle,


Why is c so important?

0 Answers  


write a own function to compare two strings with out using stringcomparition function?

6 Answers   LG Soft, Sasken,


int n=1; while(1) { switch(n) { case 1:printf("a"); n++; continue; case 2:printf("b"); n++; continue; default : printf("c"); break; } break; }

1 Answers  


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

0 Answers   Ignou,


Give the Output : * * * * * * * * * *

2 Answers  


int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?

3 Answers  


How are variables declared in c?

0 Answers  


Categories