?
=?ISO-8859-1?Q?Sacha_Sch=E4r?=
Suppose I have an array of Foo's:
class Foo
{
public:
int SomeMethode(void);
int i;
char c;
char * p;
};
Foo FooArray[1000000];
Is it okay to initilaize all Foo's by using memset,
i.e. memset( FooArray, 0, sizeof(FooArray) )?
If not, what is the most efficient safe initialization method for a case
like this?
-Sacha
class Foo
{
public:
int SomeMethode(void);
int i;
char c;
char * p;
};
Foo FooArray[1000000];
Is it okay to initilaize all Foo's by using memset,
i.e. memset( FooArray, 0, sizeof(FooArray) )?
If not, what is the most efficient safe initialization method for a case
like this?
-Sacha