> No actual (automatic) syntax highlighting system would ever highlight the code as it is shown on the page.
Not true: my actual automatic syntax highlighting system (Vim) uses the same colour for reserved words and for labels. So I think it's fair play.
Re:C puzzles
by userbinator on Thursday November 10, 2016 @10:32PM
(#12927420)
I think that's the whole idea behind these being puzzles --- someone who uses syntax highlighting as a sort of crutch will stumble over these, while those who are actually looking at the characters won't. One of the other ones does something similar with a comment, and it made me giggle a little as I caught it immediately. It's somewhat similar to a https://en.wikipedia.org/wiki/Stroop_effect experiment.
I bet even more would be confused if the 'defa1ut' one said 'defau1t' --- showing how font choice can also be very important to readability.
Re:C puzzles
by gowrikumar on Thursday November 10, 2016 @04:28PM
(#12924557)
Oh yes! That's what is mentioned in the web page upfront.
"Most of the programs are meant to be compiled, run and to be explained for their behaviour. The puzzles/questions can be broadly put into the following categories: "
For anyone who is going through these exercises, I would encourage you to copy-and-paste the code snippets into a regular text editor.