C program code
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 / guest
9
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a header file?
What is union in c?
Differentiate between the expression “++a” and “a++”?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
Explain what is the difference between functions abs() and fabs()?
What is dangling pointer in c?
What are derived data types in c?
What is union and structure in c?
What is exit() function?
What is abstract data structure in c?
Explain what is a pragma?
How would you rename a function in C?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
The difference between printf and fprintf is ?