When declaring a variable in C++/C
<p>When I declare a variable, such as:</p>

<pre><code> int x = 6;
</code></pre>

<p>What exactly is <code>x</code>? an address in the memory is usually hexadecimal..<br>
Also, when I'm calling X</p>

<pre><code>x = 2;
</code></pre>

<p>How does the compiler know where <code>x</code> is? <code>x</code> isn't an address.</p>

<p>That was my first question.  </p>

<p>Second:<br>
Let's say i have an object:<br>
<code>Person p;</code><br>
<code>p</code> has 2 datamembers:</p>

<pre><code> int type1, int type2;
</code></pre>

<p>What exactly is <code>p</code>, and why do I need to go to <code>p</code>, then the variable?</p>

<pre><code>p.type1, p-&gt;type1.
</code></pre>
