title: How to find return instruction in memory
body: <p>I have some C code, that calls a function. I'm compiling this code in visual studio on Windows. Is there a straightforward way to view the return instruction (opcode) and the return adress? 
  I tried to use the memory window in Visual Studio, but I only see my buffer "blie" and some hexadecimal interpreted memory values. I think CC might be an opcode but I'd like to have a way/software to clearly view the return instruction and the return adress. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int foo(char *);
  
  int main(int argc, char *argv[])
  {
      if (argc != 1)
          return printf("Supply an argument, dude\n");
      foo(argv[0]);
      return 0;
  }
  
  int foo(char *input)
  {
      unsigned char buffer[600] = "";
  
      printf("Adres: %.8X\n", &amp;buffer);
      strcpy(buffer, input);
      return 0;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/7xYnG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7xYnG.jpg" alt="memory view"></a></p>