3 ms·
"Explanation of needing ';' at EOL is not helping any beginner who'd be better off with the traditional "all C statements end with a ';'".]" Almost all C state
by _kst_ 8y ago
"Explanation of needing ';' at EOL is not helping any beginner who'd be better off with the traditional "all C statements end with a ';'".]"
Almost all C statements and declarations end with a semicolon. But compound statements don't.
- oldcynic 8y agoThanks. Missed 'individual'... Mind I'd stick with the K&R approach and refer to compound statements as blocks in a beginner's primer. What I wouldn't do is "explain" in a way that will probably have a beginner rescanning multiple times - I had to do a double take: "Other lines that are not starting a function, ending it or defining control end every statement in C with a ; character"