undefined, , - . , , , . :
struct Foo
{
int a, b;
int c;
Foo(): c(1), a(1), b(1) {}
};
In this constructor, the variables are initialized in the order a, b, then c , the order in the list means nothing. Therefore, if you want the value to abe initialized using some calculations on band c, you need to move the declaration ato the point after band c.
source
share