title: sizeof a static array in C
body: <p>Could someone tell me is there is a way to retain the correct size of the arrays when looking them up in the LOOKUP array? I have a felling it is impossible due to C losing the information as soon as you treat the array as an int pointer.</p>
  
  <pre><code>const int NUMBERS1[] = {1, 2, 3, 4, 5 };
  const int NUMBERS2[] = {1, 2, 3, 4, 5 };
  const int* LOOKUP[] = { NUMBERS1, NUMBERS2 };
  
  
  int main()
  {
    int correctSize = sizeof(NUMBERS1); // correctSize == 20
    int wrongSize = sizeof(LOOKUP[0]); // wrongSize == 4
  }
  </code></pre>