I've seen an example showing as
int n = sizeof(0)["abcdefghij"];
cout<<n;
What does that thing in square brackets mean? I've read somewhere that (0)["abc"]
is equivalent to ("abc")[0]
. Meaning the above expression is simply
n = sizeof("abcdefghij")[0];
i.e. the first element.