Typedef with multiple outputs
<p>I just found out that the following is valid C++</p>

<pre><code>typedef const char* PSTR, *LPSTR;
</code></pre>

<p>my question is: are PSTR and LPSTR the same alias?</p>

<p>Why if I change it to</p>

<pre><code>typedef const char* PSTR, LPSTR;
</code></pre>

<p>I get that LPSTR is a char??</p>