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 uint8 in c?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
What is pragma in c?
What is a pointer variable in c language?
Wt are the Buses in C Language
What are control structures? What are the different types?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
Why flag is used in c?
How variables are declared in c?
What is the code for 3 questions and answer check in VisualBasic.Net?
How can I direct output to the printer?
regarding pointers concept
what is a constant pointer in C
What are pointers? What are stacks and queues?
pierrot's divisor program using c or c++ code