How to assign or compare strings?
(Top) Assignment and comparison are not necessarily related, but we decided to handle them together because the mistakes made by programmers beginning with C++ have a common root, that is, the tendence to use a “natural” syntax. Assignment This actually is an issue only when working with C-style strings, i.e. char *.