S
some one
Which of the following definition is more efficient?
struct TestData {
int a;
int b;
int var1[200];
int var2[200];
int var3[200];
int var4[200];
int var5[200];
int var6[200];
int var7[200];
int var8[200];
int var9[200];
};
OR
struct Test1Struct{
int a;
int b;
struct Test2Struct *Test2;
}Test1;
struct Test2Struct {
int var1;
int var2;
int var3;
int var4;
int var5;
int var6;
int var7;
int var8;
int var9;
} Test2[200];
struct TestData {
int a;
int b;
int var1[200];
int var2[200];
int var3[200];
int var4[200];
int var5[200];
int var6[200];
int var7[200];
int var8[200];
int var9[200];
};
OR
struct Test1Struct{
int a;
int b;
struct Test2Struct *Test2;
}Test1;
struct Test2Struct {
int var1;
int var2;
int var3;
int var4;
int var5;
int var6;
int var7;
int var8;
int var9;
} Test2[200];