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
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
Explain the use of 'auto' keyword
Is that possible to add pointers to each other?
What does void main () mean?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
Explain how do you print an address?
What are the advantages and disadvantages of a heap?
What is pragma c?
What is the difference between array and pointer in c?
When should volatile modifier be used?
What is the code for 3 questions and answer check in VisualBasic.Net?
how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
write a program to find the given number is prime or not