Can I treat a struct like an array?

It might work but it is not portable, the compiler is free to align things so that one float does not neccessarily immediately follow the other.

Leave a Comment