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 / sundar
8
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain is it better to bitshift a value than to multiply by 2?
What is bash c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Not all reserved words are written in lowercase. TRUE or FALSE?
Why c is a mother language?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What is volatile variable in c?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
Is a house a mass structure?
using only #include
Is anything faster than c?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Is a pointer a kind of array?
What tq means in chat?
How can you draw circles in C?