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 / mannucse
a
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Tell us the use of fflush() function in c language?
What are all different types of pointers in c?
How to get string length of given string in c?
What is external variable in c?
What are the storage classes in C?
What is the scope of static variable in c?
What is volatile c?
Can variables be declared anywhere in c?
What is the benefit of using #define to declare a constant?
Is c object oriented?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
What is the difference between union and anonymous union?
application attempts to perform an operation?
What is the maximum no. of arguments that can be given in a command line in C.?
What is the difference between if else and switchstatement