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 / hussain reddy
9
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is meant by high-order and low-order bytes?
What is a nested loop?
Explain how can you be sure that a program follows the ansi c standard?
What are shell structures used for?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
How can I dynamically allocate arrays?
Do you know the purpose of 'register' keyword?
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
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
What is #line?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Explain about block scope in c?
What is non linear data structure in c?
Explain zero based addressing.
What are data structures in c and how to use them?