I am working on a c program where the .c file does not have a main function. It has an array
I wanted to replace the "minor version" value ( 0x00, 0x01) by a dynamic value, lets say dynamic_value.Code:static const uint8_t adData1[5] = { /* Major Version */ 0x00, 0x01, /* Minor Version */ 0x00, 0x01, 0xC5};
When I tried to add this dynamic_value inside the array, it throws mean an error such that " error: initializer element is not constant" . Any other ways to overcome this?
Regadrs
Niranjan