Is it possible to have an array of elements (structs) where the values vary in size?
The issue I am faced with is that I do not know how to access an element since it requires a cast. The "array" just contains pointers to the structs. Therefore I have decided to go with void**. As not each of the elements is of the same type, the type needs to be stored in the array as well so that I would know what to cast to without making rough guesses. This does not sound very efficient though. Is there not a more efficient way?