title: memory allocation of the recursive function in recursion?
body: <p>This is a simple code of recursion. What I want to know is why I am getting the same memory address for the Reverse function. In my knowledge it should be different each time the function is called. It's not happening here.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  void Reverse();
  int main()
  {
      printf("Enter a sentence: ");
      Reverse();
      return 0;
  }
  void Reverse()
  {
      char c;
      scanf("%c",&amp;c);
      if( c != '\n')
      {
          printf("%p\n",Reverse);
          Reverse();
          printf("%c",c);
      }
  }
  </code></pre>
  
  <p>Input:</p>
  
  <pre><code>123456
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Enter a sentence: 123456
  0x80484be
  0x80484be
  0x80484be
  0x80484be
  0x80484be
  0x80484be
  654321
  </code></pre>