Re:JavaScript Quiz Set
by dhconnelly on Saturday January 19, 2013 @09:13AM
(#5083401)
No, you're incorrect, C and Java do have block scope. It would have taken like 5 seconds to verify that. In C:
==> test.c:6: error: ‘a’ undeclared (first use in this function)
[ Parent
| on HN ]
In older versions of C that was the only way to declare variables in a function after the first non-declaration statement.