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
What is a union?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is volatile keyword in c?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
while initialization of array why we use a[][2] why not a[2][]...?
Explain what is wrong with this statement? Myname = ?robin?;
What is difference between structure and union in c?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
How can you be sure that a program follows the ANSI C standard?
How to declare a variable?
What is wrong with this program statement? void = 10;
Explain the term printf() and scanf() used in c language?
What is void pointers in c?
What is a #include preprocessor?
When should a type cast be used?