tags:

views:

159

answers:

2

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
+2  A: 

It is used in both languages.

apbianco