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 / 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 |
Post New Answer View All Answers
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is the size of array float a(10)?
What are the features of the c language?
How can I handle floating-point exceptions gracefully?
#include
Why is c faster?
List some of the static data structures in C?
Why is structure important for a child?
string reverse using recursion
What is the difference between NULL and NUL?
how we can make 3d venturing graphics on outer interface
What is array of structure in c programming?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is the purpose of sprintf?
What is volatile variable how do you declare it?