I have a C program which declares an array as such :
static unsigned char m_data[90000];
Now the program takes a file name as a command line input as follow :
./output [Filename]
I want to make this program to change the array size to the size of the file at runtime to obtain something like :
static unsigned char m_data[FILE_SIZE];
How do I do it to change the size of the array dynamically at each runtime ?