in Education by
#include int main() { void fib(int f1,int f2, int n) { static int i = 1; int f3; if(i <= n) { f3 = f1+f2 printf(“%d”, f3); f1 =f2; f2= f3; i++ ; fib(f1,f2,n); } } return 0; } what error is there in this code, say correct answer Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Ans: #include it should be #include

Related questions

0 votes
    #include int main() { void fib(int f1,int f2, int n) { static int i = 1; int f3; if(i...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    class year { public static void main() { int a=2000; if( a%4 == 0 && a%100 != 0); { System.out.println ... this it is showing 2 errors Select the correct answer from above options...
asked Dec 9, 2021 in Education by JackTerrance
0 votes
    int find(int i) { if(>1) j=find(j/10)+(j%10) else j=0; return j; void main() int i=1000 int k k=find(i): printf(“%d”, K) Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    class Modulus { public static void main(String args[]) { double a = 25.64; int b = 25; a = a % 10; b = b % 10; ... (a + + b); } } Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    int find(int j) { if(>1X j=find(j/ 10)+(%10); } else { j=0; return j; void main() int i=1000, int k; k=find(i); printf(“%d”, k); Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    int fun(int n) { if(n!=0) { return n – fun(n-5); } else { return n; } } int main(){ int n = 20, z; z = fun(n); printf(“%d”, z); } Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
0 votes
    2; int i int n 92; while(i...
asked Dec 12, 2021 in Education by JackTerrance
0 votes
    15. #include #define foo(m, n) m + n int main() { int a = foo(5,13); printf(“%d”, a); Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    Which is a valid declaration within an interface? A)protected short stop = 23; b)final void madness(short stop); ... (double duty);? Select the correct answer from above options...
asked Dec 1, 2021 in Education by JackTerrance
0 votes
    The Laplace transform of f1 (t) + f2 (t) is? (a) F1(s) + F2(s) (b) F1(s) - F2(s) (c) ... , Network theory Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 16, 2021 in Education by JackTerrance
0 votes
    - What will be the output of the following C code? #include int main() { int i = 97, *p=&i; foo( ... (D) Segmentation fault/code crash Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    b. Write a java statement to accomplish each of the following tasks: i. Declare a variable, sum and a to be ... value of variable sum. Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
...