Re:A convenient untruth: Array notation in C is a lie
by gpderetta on Thursday December 22, 2016 @04:49PM
(#13240677)
They actually are proper arrays in C++ [1], although, as usual, they decay to pointers faster than an unstable particle.
Re:A convenient untruth: Array notation in C is a lie
by smitherfield on Friday December 23, 2016 @12:33AM
(#13243075)
I stand corrected!
C++ string literals are " const char * " (one of the minor incompatibilities between the languages).
They ought to be "const char[]" but aren't. And, the behavior of "char[]" should be the same as "struct { char[] }", but it isn't.