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 / sindhu
shobha is correct.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is scope rule of function in c?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
In a switch statement, what will happen if a break statement is omitted?
Explain the concept and use of type void.
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is the best style for code layout in c?
Write a program for Overriding.
What is the difference between text and binary modes?
Explain about the functions strcat() and strcmp()?
Are comments included during the compilation stage and placed in the EXE file as well?
What is equivalent to ++i+++j?
Explain output of printf("Hello World"-'A'+'B'); ?
Why we write conio h in c?