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
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
How arrays can be passed to a user defined function
Explain what are the __date__ and __time__ preprocessor commands?
How can you pass an array to a function by value?
What is meant by gets in c?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is data structure in c programming?
Is flag a keyword in c?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What is equivalent to ++i+++j?
Is c# a good language?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
Tell me what are bitwise shift operators?
What is structure padding in c?
Can you tell me how to check whether a linked list is circular?