If I have a list of global variables like this ...
int a; char b; float c[10]; double d[3];
and I have an identical sequence of variables listed inside the class ...
class test_type { int a; char b; float c[10]; double d[3]; }
it is guaranteed that the location of all variables in memory is identical. that is, "b" is guaranteed to be stored immediately after "a" both in the list of global tables and in the list of classes?
EDIT: I ask because I wanted to A) copy the data from one to another as a "place of work" and "B"). I wanted to check any differences between them as a place of work. If the answer to the main question is βnoβ, then does anyone have any suggestions on how to get around the problem, it is advisable to leave the existing code as unchanged as possible.
Mick source share