Surprisingly, this makes sense: it is indexing into an array of characters representing a string literal. By the way, this particular index has a value 6that goes beyond the literal and therefore the behavior is undefined.
You can build an expression that works on the same basic pattern:
char c = "quick brown fox"[3 << 1];
will have the same effect as
char c = 'b';
source
share