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
What is string in c language?
What is the full form of getch?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Write a program to print numbers from 1 to 100 without using loop in c?
What is a pragma?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Write a Program to find whether the given number or string is palindrome.
Explain the difference between strcpy() and memcpy() function?
What is pragma in c?
What are the 4 types of functions?
What are the usage of pointer in c?
What does a function declared as pascal do differently?
When should a type cast be used?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none