0x28ff2e
is an address of a
0x28ff10
is an address of b
2
is the size of a
0x4453c43
is an address of the result of converting cout
to void*
followed by sizeof(b)
(See Does std::cout have a return value?)
Maybe you did want this instead:
cout << sizeof(a) << endl;
cout << sizeof(b) << endl;
Or this:
cout << sizeof(a) << endl << sizeof(b) << endl;