Is there anything wrong with this?
My program works perfectly with this code, as far as I can tell. I'm asking because all the examples I've seen only have constants on the right hand side. For example:PHP Code:
int get_valid_grade_counter();
const int GRADE_COUNTER = get_valid_grade_counter();
float grade[GRADE_COUNTER];
PHP Code:
#define MAX_NUMBER_OF_GRADES 16
float grade[MAX_NUMBER_OF_GRADES];