C program code
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 / deepa
error there is no keyword as then ,therefore it will
treat 'then' as a variable which wud lead it to compilation
error
| Is This Answer Correct ? | 15 Yes | 8 No |
Post New Answer View All Answers
Are the variables argc and argv are local to main?
What is difference between structure and union?
What is a char c?
Explain how do you list files in a directory?
What is function what are the types of function?
Why main is not a keyword in c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What does calloc stand for?
Is c procedural or functional?
How can I recover the file name given an open stream?
Why we use break in c?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Ow can I insert or delete a line (or record) in the middle of a file?
What is the Purpose of 'extern' keyword in a function declaration?