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 does calloc stand for?
How do we make a global variable accessible across files? Explain the extern keyword?
In C language what is a 'dangling pointer'?
What is variable initialization and why is it important?
What are the types of c language?
What does c mean in standard form?
What is optimization in c?
What is a program flowchart?
What is register variable in c language?
Explain the difference between call by value and call by reference in c language?
What is sizeof c?
How can you access memory located at a certain address?
What are c header files?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Why do we use int main instead of void main in c?