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 / sundar
8
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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 table lookup in c?
Can we initialize extern variable in c?
How does #define work?
Write a program to swap two numbers without using the third variable?
How can I trap or ignore keyboard interrupts like control-c?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What is nested structure in c?
Where are local variables stored in c?
What does 4d mean in c?
Why does everyone say not to use scanf? What should I use instead?
How does sizeof know array size?
What is context in c?
What is the difference between the local variable and global variable in c?
What is the difference between NULL and NUL?