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
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What are the 5 types of organizational structures?
What is the significance of an algorithm to C programming?
How can I read in an object file and jump to locations in it?
Can variables be declared anywhere in c?
Why does not c have an exponentiation operator?
What is ## preprocessor operator in c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Do you know what are bitwise shift operators in c programming?
What are the types of assignment statements?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Why do we use int main?
please send me the code for multiplying sparse matrix using c