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 / tej
ans is 9
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can I invoke another program or command and trap its output?
Can we access array using pointer in c language?
Write a Program to find whether the given number or string is palindrome.
What are the advantages of c language?
What is the sizeof () operator?
Can a file other than a .h file be included with #include?
Explain the difference between null pointer and void pointer.
What is a function in c?
Are pointers really faster than arrays?
Explain what is the purpose of "extern" keyword in a function declaration?
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Can math operations be performed on a void pointer?
Why c is called procedure oriented language?
What are called c variables?
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)