title: Is it legal to use #define in order to define the size of a static array?
body: <p>I have many classes in the system that I'm currently developing and in these classes I have an array about the "name" of something. The name should be at most 30 characters.</p>
  
  <p>Initially I used just 10 characters but now I need to increase the limit. Increasing the limit takes time though because I use this kind of array in many places. It would be easier if I used <code>#define NAME_SIZE 30</code> or something like that and then all I would have to do is change one number instead of around twenty.</p>
  
  <p>However I'm not sure if that's a "legal" thing to do in C++.</p>
  
  <p>It would save me tons of time in the future, that's why I'm asking.</p>