A
Ajay 0x007
Hi
Does C++ standard says thay all elements of static array inside a
class are by defaults initialized by NULL??
i.e.
class myClass1{
public:
int i;
};
class myClass2 {
public:
static myClass1 arr[200];
};
myClass1 * myClass2::arr[200]; // will all 200 pointer elements be
always initialized to NULL or If not how it can be done ???
int main(void){
myClass2 obj;
}
Does C++ standard says thay all elements of static array inside a
class are by defaults initialized by NULL??
i.e.
class myClass1{
public:
int i;
};
class myClass2 {
public:
static myClass1 arr[200];
};
myClass1 * myClass2::arr[200]; // will all 200 pointer elements be
always initialized to NULL or If not how it can be done ???
int main(void){
myClass2 obj;
}