I wrote the following code snippet:
void foo() { struct _bar_ { int a; } bar; cout << \"Value of a is \" << bar.a; } <
Member variables of a struct are not initialized by default. Just like a class (because a struct is exactly the same thing as a class, only in struct the members are public by default).