Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kevin_thibedeau
on Nov 24, 2014
|
parent
|
context
|
favorite
| on:
Git's initial commit
In the C grammar, braces denote compound statements. Control flow statements can take any type of statement as their body rather than just the compound variety.
PurplePanda
on Nov 24, 2014
[–]
It confuses me that it doesn't work for functions. like
int main() return 0;
pdw
on Nov 24, 2014
|
parent
[–]
In K&R C, the function braces serve to separate parameter declarations and local variables:
int main(argc, argv) int argc; char **argv; { int local; }
PurplePanda
on Nov 25, 2014
|
root
|
parent
[–]
Thanks, I haven't seen that syntax before.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: