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 / tej
ans is 9
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is wrong in this statement?
What is difference between scanf and gets?
In a header file whether functions are declared or defined?
Can true be a variable name in c?
Explain a pre-processor and its advantages.
What is difference between %d and %i in c?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What is a union?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What is enumerated data type in c?
Is there anything like an ifdef for typedefs?
What is graph in c?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
What does node * mean?