I want to have a constant character array of which each array element to be passed to function in runtime. I have written them in following way:
const char *IntenistyVal[] ={"1","2","3","4","5"};
and The function is
Test(const char *pText)
(I cannot change this as this is one of standard Library function). Now when I try to call the function "Test" as
Test(IntensityVal[0])
I also Tried
const char * const IntenistyVal[] ={"1","2","3","4","5"};
In both cases I am getting error as "Expression must have a constant value". Can Any one help me where I am doing Wrong.