title: what does int* foo (int a) return in c++
body: <pre><code>int* foo(int a)
  {
      int b = 5;
      int c = a+b;
      return &amp;c;
  }
  </code></pre>
  
  <p>I know that's a horrible code but I dont understand what the errors here. What is int* foo() supposed to return and what does &amp;c mean?</p>