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
Answers were Sorted based on User's Feedback
Answer / 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 |
mplementation of stack using any programing language
Why is event driven programming or procedural programming, better within specific scenario?
Why is #define used?
what is the difference between #include<stdio.h> and #include"stdio.h" ?
write a function which accept two numbers from main() and interchange them using pointers?
What does char * * argv mean in c?
What is bss in c?
How will you allocate memory to a double pointer ?
why do we use # in c-language?
Does sprintf put null character?
What are loops c?
HOW DO YOU HANDLE EXCEPTIONS IN C?