I came across these two statements in a SNS photo album, with the title "the most elegant way of output I ever met" or something.
Here are the two statements:
printf("%d%c", a, " \n"[i==n]);
puts("YES\0No"+condition * 4);
I've no idea what they are doing and how they work. Will someone explain to me? Thank you.