title: Function inside a function (Reference)
body: <p>I just starting  to learn the C language, I've got this function to explain but I really don't understand it.</p>
  
  <pre><code>int uknown(int a, int b)
      {
          if  (b == 1) return a;
          else return a + uknown(a, b - 1);
      }
  </code></pre>
  
  <p>When i use the function with a printf command for example:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      printf ("Value = %i", uknown(3,4));
      system("pause");
  }
  </code></pre>
  
  <p>I get a return value of 12. But I'm struggling to understand how the calculation was made.</p>