Pointer notation in C
I know more C++ than C. D开发者_开发知识库oes C use -> for pointers, or is that only used in C++?
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.
It is used in both languages.
加载中,请稍侯......
精彩评论