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 |
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
wats SIZE_T meant for?
1,4,8,13,21,30,36,45,54,63,73,?,?.
10 Answers AMB, Franklin Templeton,
How do you access command-line arguments?
write a 'c' program to sum the number of integer values
How Many Header Files in c?
What is the correct declaration of main?
Why we use int main and void main?
what is diff b/w huge & far & near pointer??
Is c language still used?
Explain how can I convert a number to a string?
What is a double c?