union & struct & aggregate & constexpr

using aggregate initialization on classes and structs aggregate initialization syntax 1Type objectName = {argument1,...,...

Coding

union and struct

sizeof() a char* pointer's size is fixed at 4 bytes (on 32-bit system, and double it on 64-bit) and is independent of the vol...

Coding

union and struct

sizeof() a char* pointer's size is fixed at 4 bytes (on 32-bit system, and double it on 64-bit) and is independent of the vol...

Coding

constructor -3

move constructor 123456789class MyString{ // pick implementation from Listing 9.9};MyString Copy(MyString& sour...

Coding

constructor -3

move constructor 123456789class MyString{ // pick implementation from Listing 9.9};MyString Copy(MyString& sour...

Coding

constructor -2

the difference of & used in reference and store address A reference & is a alias of variable and must be initialized ...

Coding

constructor -2

the difference of & used in reference and store address A reference & is a alias of variable and must be initialized ...

Coding

constructor and shadow copying

strlen vs sizeof strlen method is used to find the length of an array whereas sizeof method is used to find the actual size ...

Coding
15678910