title: Can enums have limited scope if defined inside a struct in c
body: <p>I want to know if an enum can be limited in how it is access by putting it inside a struct. I know that this would work in C++ (that's where I got the idea), but I don't know if it will work in c. So, for example, if I have two different structs</p>
  
  <pre><code>struct SaticArrayA
  {
      enum { MAX_SIZE = 10 };
      int array[MAX_SIZE];
  };
  struct SaticArrayB
  {
      enum { MAX_SIZE = 20 };
      int array[MAX_SIZE];
  };
  </code></pre>
  
  <p>Will this even close to compile? Basically, I want to do what I would do in C++ and give myself a common naming convention across "classes" so that I can ask any array what it's size is, etc. </p>
  
  <p>(p.s. I'm essentially trying to give myself a nicer static array in c that won't lose size information (by decaying to a pointer) the second I try to pass it to another scope).</p>