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 / ravinderreddy
ans: b
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the size of a union variable?
What is the difference between array and pointer?
Who invented bcpl language?
Explain what happens if you free a pointer twice?
Is c a great language, or what?
What does != Mean in c?
Explain built-in function?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
In a switch statement, what will happen if a break statement is omitted?
What is the use of parallelize in spark?
For what purpose null pointer used?
What is an arrays?
What are the advantages of c preprocessor?
Distinguish between actual and formal arguments.