3 ms·
Note that in C at least the '->' is completely redundant and the '.' alone would suffice. (C++ is a somewhat different story.)
by Koshkin 5y ago
Note that in C at least the '->' is completely redundant and the '.' alone would suffice. (C++ is a somewhat different story.)
- scoopdewoop 5y agoNot without parentheses, which is why -> was introduced.
- ModernMech 5y agoOnly because of arbitrary precedence rules though. They didn't have to make . higher than * *foo.bar() could be read as "dereference foo and then evaluate bar() on the result".