I know more C++ than C. Does C use -> for pointers, or is that only used in C++?
+15
A:
The ->
operator is part of standard C.
(expression)->identifier
is equivalent to (*expression).identifier
- obviously, for this to be valid, expression
must have a type of pointer to structure or pointer to union.
caf
2009-11-17 10:21:06