Just a quick basic question for a C newb:
If I use some preprocessor conditional compile directives, can I declare the same variable to be two different values? For example, I want an array to have 7 elements if one #ifdef is true, and 9 elements if another #ifdef is true, with each containing different values. If the arrays are initialized within the #ifdefs, is this legal, or will I get some sort of "Redefinition" error with my compiler (it's Keil C51 if that matters)?
Thanks!