Comment on Most Pressed Keys and Programming SyntaxesparentComments−troxy15yDo you know why you have slightly different numbers of (){}[] characters? In C or C++ shouldn't those all be paired up to match?−zeteo15yIt can probably be accounted for by comments (e.g. people sometimes comment out half a block). Although the comments should be left out, so as not to mix the C and the English.−alextgordon15yAlso string and character literals. It's common to write something like if (c == '{') and not need to test for the matching one.
Comments
Do you know why you have slightly different numbers of (){}[] characters? In C or C++ shouldn't those all be paired up to match?
It can probably be accounted for by comments (e.g. people sometimes comment out half a block). Although the comments should be left out, so as not to mix the C and the English.
Also string and character literals. It's common to write something like
and not need to test for the matching one.