title: Can anyone help me debug this?
body: <p>I'm fairy new at c++ and trying to make a simple program that returns the address of a char, here is the code</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  char returnaddress(char* x){
  char *t = &amp;x;
  return *t;
  }
  int main()
  {
    char y = "a";
    returnaddress(&amp;y);
    return 0;
  }
  </code></pre>