c++ does implicit copy constructor copy array member variable? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How are C array members handled in copy control functions? I would guess implicit copy constructor (generated by compiler) would copy pointer if member variable is declared as pointer. I'm not sure what happens to array member variable. Does implicit copy constructor copy array member correctly? How about assignment operator? For instance: char mCharArray[100]; int mIntArray[100]; Would the mCharArray mIntArray