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
What is difference between union and structure in c?
What is a void * in c?
Why we not create function inside function.
What is putchar() function?
What is memory leak in c?
Differentiate between ordinary variable and pointer in c.
Why do we need volatile in c?
Explain how do you sort filenames in a directory?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
Can you please compare array with pointer?
What is a function simple definition?
What are the various types of control structures in programming?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
When should the register modifier be used? Does it really help?
What is n in c?