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 is the purpose of sprintf?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is a stream water?
In which language linux is written?
What's the right way to use errno?
Is void a keyword in c?
p*=(++q)++*--p when p=q=1 while(q<=6)
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is integer constants?
What are structures and unions? State differencves between them.
What is structure data type in c?
What is difference between structure and union?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Differentiate between #include<...> and #include '...'
What are multibyte characters?