title: `cout << argv[0]` returning hex value?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8096369/can-not-print-out-the-argv-values-using-stdcout-in-vc">Can not print out the argv[] values using std::cout in VC++</a>  </p>
  </blockquote>
  
  
  
  <p>Code:</p>
  
  <pre><code>using namespace std;
  int _tmain(int argc, _TCHAR* argv[])
  {
      cout &lt;&lt; argv[0] &lt;&lt; endl;
      system("PAUSE");
      return 0;
  }
  </code></pre>
  
  <p>As you can see, a standard Win32 console application.<br>
  The confusing part is, the value of <code>argv[0]</code> is output as <code>00035B88</code>.<br>
  This is being (AFAIK) run with no command-line options so <code>argv[]</code> should not have a value yet. (or is this the problem?)</p>
  
  <p>However, <code>argv[]</code> is declared as a pointer (<code>_TCHAR*</code>) and I heard that <code>cout</code> will print the address of pointers. Is this the case? If so, how can I print/use the value of <code>argv</code>?</p>