foo is a global array of integers that must be initialized. If, in a future, I change SIZE to 6 then I will have to add MANUALLY two new INIT_VALUE items to the initialization list. Is there a macro or other thing that could be used to modify automatically the initialization list at compile time when the value of SIZE is changed?
#define SIZE 4
#define INIT_VALUE 101
/* global variable that must be initialized */
int foo[SIZE] = {INIT_VALUE,
INIT_VALUE,
INIT_VALUE,
INIT_VALUE};