There is an operator overload for << which interprets char* as a C-style string. If char* however points to a single character, how do I output it into a stream?
There is an operator overload for << which interprets char* as a C-style string.
Share
If
chis of typechar*and actually points to a single char, use*chso that the type of the expression ischar. The operator will know what to do.