Return variable struct members
问题 I need to return a struct with two values in it. A double value ( time ) and an uint8_t array with a variable size. I have two functions and both of them should return the same type of struct, but with different data members ( data[9], data[64] ). I've already tried to create a struct with an additional member size , but this isn't working at all. size should initialize the array with a fixed length, but the compilers says that the variable size is not defined. typedef struct Result { double