Since the condition evaluates to 0 or 1, and the string "s" contains exactly one character before the 0-terminator. Thus, "s" + bool will evaluate the address of "s" if bool is false, and to one character after it, the address of the 0-terminator if true.
This is a cool hack, but never use this code seriously.
source share