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 data structure in c language?
What is modifier & how many types of modifiers available in c?
What is sizeof int in c?
write a program to find the given number is prime or not
What is volatile c?
What are the types of data files?
What should malloc() do?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
program to convert a integer to string in c language'
Which is better pointer or array?
How are strings stored in c?
regarding pointers concept
Which header file is used for clrscr?
What is double pointer in c?
What is extern c used for?