How do I get the index of an array which will take the the value of a global variable declared elsewhere.
//inside stress.h
#include "note.h"
extern int nelement = Element; //int Element is a global variable declared inside note.h
#define nmesh 10
int array [nelement*nmesh]; //error: expression must have a constant value
Element
is a variable which will be read during run-time.