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 02d in c?
What is a global variable in c?
Why header files are used?
What is modifier & how many types of modifiers available in c?
Does sprintf put null character?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Is anything faster than c?
What is the difference between a function and a method in c?
What do you mean by scope of a variable in c?
What is #error and use of it?
C program to find all possible outcomes of a dice?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
how to find binary of number?
Is c compiled or interpreted?
Between macros and functions,which is better to use and why?