Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Because C's precedence rules are damn complicated.

This particular part is not actually complicated: the postfix operators bind the most tightly, then the prefix ones, then the infix ones. (The last part is quite messy, though.)

So (int)x[y] parses the same way as, for example, *p++, which should be familliar to a C programmer.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: