title: Calling memset on pointer to array?
body: <p>I don't think I'm understanding something here...</p>
  
  <pre><code>bool (*lookup)[100];
  memset(lookup, 0, 100 * sizeof(*lookup));
  </code></pre>
  
  <p>I'm trying to initialize a pointer to a stack allocated array (the pointer will only be passed to calls within the stack frame). The memset is for initializing the array to 0's.</p>
  
  <p>The previous code causes a segfault, does memset not like pointers?</p>