title: How can I get the size of an array in C / Objective-C?
body: <p>I have this array:</p>
  
  <pre><code>unsigned char* data = CGBitmapContextGetData(cgctx);
  </code></pre>
  
  <p>then I tried to get the size with sizeof(data), but that will return me a nonsense-value of 4. data holds a big amount of information. That can't be just 4 ;)</p>
  
  <p>I even get information at data[8293] ... so ... not 4 elements at all.</p>