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
Which is best book for data structures in c?
Explain how do you determine whether to use a stream function or a low-level function?
Why is c faster?
How do you redirect a standard stream?
What is the difference between the expression “++a” and “a++”?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
How does placing some code lines between the comment symbol help in debugging the code?
What is pointer in c?
Who invented b language?
Write a program which returns the first non repetitive character in the string?
What does. int *x[](); means ?
What is the difference between ++a and a++?
What is linear search?
Is printf a keyword?
In C language, a variable name cannot contain?