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 / hussain reddy
9
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between the expression “++a” and “a++”?
What is wrong with this initialization?
What is difference between union and structure in c?
What type of function is main ()?
How to create struct variables?
How can I change their mode to binary?
What is the purpose of 'register' keyword in c language?
Why do we need functions in c?
Using which language Test cases are added in .ptu file of RTRT unit testing???
What is storage class?
How many header files are in c?
Write a function that will take in a phone number and output all possible alphabetical combinations
What are different types of operators?
What is the correct code to have following output in c using nested for loop?
Explain how do you generate random numbers in c?