Can I safely convert struct of floats into float array in C++? – stackoverflow.com

For example I have this struct struct A { float x; float y; float z; }; Can I do this? A a; float* array = (float*)a; And use a as float array?

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Can I safely convert struct of floats into float array in C++? – stackoverflow.com"