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 / madhu
if (n<=1)
zap = 1;
it gives a compile time error invlaid l value assignment.
zap is a function and cannot be assigned a value
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
What are # preprocessor operator in c?
Why static variable is used in c?
What is NULL pointer?
List a few unconditional control statement in c.
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
what does static variable mean?
Explain output of printf("Hello World"-'A'+'B'); ?
Explain union.
How can variables be characterized?
Why doesnt long int work?
How to Throw some light on the splay trees?
What is a shell structure examples?
What is int main () in c?