Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How to implement strings. Parent comment
char[n]
In C++, it's "array of n const char", or
const char[n]
(In both C and C++, array expressions "decay" to pointer expressions in most contexts. But for example
sizeof "hello"
There are no comments on this comment yet.
In C++, it's "array of n const char", or
It's not of a reference type. See the ISO C++11 standard, 2.4.15 [lex.string].(In both C and C++, array expressions "decay" to pointer expressions in most contexts. But for example
is 6 (the size of the string), not the size of a char* pointer.