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 / mazhar
fn name and variable name are same it get overloaded..
by changing the variable name the ans will be: 9
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does c mean in basketball?
What is the right type to use for boolean values in c?
When should a type cast be used?
How can I discover how many arguments a function was actually called with?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is bin sh c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What is bubble sort technique in c?
How can I do graphics in c?
How is pointer initialized in c?
What is the difference between procedural and declarative language?
how to capitalise first letter of each word in a given string?
What are valid operations on pointers?
What is a volatile keyword in c?
What does struct node * mean?