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
Answers were Sorted based on User's Feedback
Answer / mazhar
fn name and variable name are same it get overloaded..
by changing the variable name the ans will be: 9
Is This Answer Correct ? | 1 Yes | 0 No |
What are the 5 data types?
Explain threaded binary trees?
write a program that explain #define and # undef directive
who invented c
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); }
A program to write a number of letters and numbers, such as counting and display
Which type of language is c?
What is the o/p of the follow pgm? #include<stdio.h> main() { char char_arr[5]=”ORACL”; char c=’E’; prinf(“%s\n”,strcat(char_arr,c)); } a:oracle b. oracl c.e d.none
What is character constants?
What is signed and unsigned?
What would be an example of a structure analogous to structure c?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile