need sanity check on array declaration
If I have something like...
1 2 3 4 5 6 7 8 9 10 11 12
|
struct Obj
{
Obj()
{ // initialize stuff }
};
int main()
{
Obj stuff[5];
return 0;
}
|
Would stuff[5] invoke Obj's default constructor for each object?
I am 99% sure yes.
Okay, thanks.
Topic archived. No new replies allowed.