Hello
Normall in an application we define global variable as: int a; int b; ...
How about use one structure to include all variables, and just define one structure instance? as below: struct{ int a; int b; ... }global;
Is the performance slower? does it take more code space? Is there any other drawback?
Thanks.
/Wang
PS: Generally it is always a good idea to group variables in structs, if you have a larger program with several modules - just perhaps better use several structs - just 1 struct sounds a bit strange.