I'm trying to define a char* global variable (is this bad practice?) but keep getting an error message "initializer element is not constant"
the code is as follows:
and is in the header file with other global variables.Code:char* inputfile = malloc( sizeof(char) );
what does the error mean, and why does it only occur when using global variables (i've used the exact same line in a function and it works fine).
Thanks