in Programming
465 views
1 vote
1 vote

Consider the following C functions.

int fun1(int n) {
    static int i= 0;
    if (n > 0) {
       ++i;
      fun1(n-1);
   }
  return (i);
}
int fun2(int n) {
   static int i= 0;
   if (n>0) {
      i = i+ fun1 (n) ;
      fun2(n-1) ;
  }
return (i);
}

The return value of $\text{fun}2 (5)$ is _________

in Programming
by
589 points
465 views

1 Answer

1 vote
1 vote

video solution for this question:

https://youtu.be/-qagQTfzSKQ

by
173 points
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.