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 |
write a programme to convert temperature from farenheit to celcius?
What is function and its example?
what is a far pointer
12 Answers ABB, DRDO, ITI, Maruti Suzuki, Steel Plant, TCS, Toyota, Vivo Mobiles,
How does free() know explain how much memory to release?
Is c high or low level?
Write down the program to sort the array.
define string ?
Why shouldn’t I start variable names with underscores?
What is register variable in c language?
which types of data structure will i use to convert infix to post fix???
Explain what are bus errors, memory faults, and core dumps?
what is the difference between exit() and _exit() functions?