I
Ioannis Vranos
I was confused from another thread about this:
Does this kind of initialisation
int x= int();
initialise to 0 of the type only for built in types or for *all* POD types?
That is:
struct whatever
{
int x,y;
}a=whatever();
is guaranteed a.x and a.y to be initialised to 0?
Does this kind of initialisation
int x= int();
initialise to 0 of the type only for built in types or for *all* POD types?
That is:
struct whatever
{
int x,y;
}a=whatever();
is guaranteed a.x and a.y to be initialised to 0?