Create a pointer on the Stack
<p>I'm learning C++ and I have a question about pointers.</p>

<p>I have this code:</p>

<pre><code>int* max = new int;
*max = 0;
</code></pre>

<p>I think, I have created a pointer on the heap (if I'm not right, please, tell me).</p>

<p>One question:</p>

<p><strong>Is there a way to create an initialize a pointer with one instruction?</strong> (now, I'm using two instructions).</p>

<p>Another question:</p>

<p><strong>How can I create a pointer on the stack?</strong></p>

<p>I see code like this one:</p>

<pre><code>int myVar = 20;
int* pVar = &amp;myVar;
</code></pre>

<p>I think I haven't created a pointer on the stack but I think it is the only way to not create a pointer on the heap.</p>

<p>I'm very very very new on C++ development.</p>
