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 |
What is the relationship between pointers and data structure?
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
Is it cc or c in a letter?
Why cd or dvd are round why not square.
f=(x>y)?x:y a) f points to max of x and y b) f points to min of x and y c)error
Explain pointer. What are function pointers in C?
write a program to print data of 5 five students with structures?
Explain what’s a signal? Explain what do I use signals for?
Explain what is a program flowchart and explain how does it help in writing a program?
What are comments and how do you insert it in a C program?
What is the Lvalue and Rvalue?
Explain what is #line used for?