Trouble accessing array of object pointers
<p>I'm writing a bit of code to model a bus. The code has an error and I have simplified the problem in the following snippet:</p>

<pre><code>struct luggageTag{
    int seat;
    bool luggage;
};

int main(){

    luggageTag *tagBox[36];
    tagBox[2]-&gt;luggage = true; // EXC_BAD_ACCESS on this line  
}
</code></pre>

<p>Why is it that the line </p>

<pre><code>tagBox[2]-&gt;luggage = true;
</code></pre>

<p>results in bad access? </p>