structures and pointers
<p>I'm not sure what I'm doing...</p>

<p>Let say I have a structure</p>

<pre><code>struct Inner{
    exampleType a;
    int b;
}

struct Outer{
    int current;
    int total;
    Inner records[MAXNUMBER];
}

struct Outer2{
    Outer outer;
}
</code></pre>

<p>And I have the following functions:</p>

<pre><code>void try3( Outer2&amp; outer, type var, type2 var2 ){
}

void try2( Outer2* outer ){
    try3(*outer, var, var2);
}
</code></pre>

<p>Inside main:</p>

<pre><code>int myMain( int argc, char *argv[] ){
    Outer2 outer2;
    try2 (&amp;outer2);
}
</code></pre>

<p>Here's the question. Can I increment the value of current by sticking the following line in try3:</p>

<pre><code>++outer.outer.current;
</code></pre>
