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 / mazhar
fn name and variable name are same it get overloaded..
by changing the variable name the ans will be: 9
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain what is the heap?
When should the register modifier be used? Does it really help?
explain what is a newline escape sequence?
Write a program to implement queue.
Why is c so powerful?
What are the 4 types of functions?
What is auto keyword in c?
What standard functions are available to manipulate strings?
What is main () in c language?
What is the meaning of c in c language?
What does void main () mean?
What does void main return?
What are pointers in C? Give an example where to illustrate their significance.
What is the difference between array and pointer in c?
What does malloc () calloc () realloc () free () do?