Pointer designation in C

I know more C ++ than C. Does C use → use for pointers or is it used only in C ++?

+3
source share
2 answers

It is used in both languages.

+2
source

The operator ->is part of standard C.

(expression)->identifierequivalently (*expression).identifier- obviously, in order for this to be admissible, it expressionmust have the type of a pointer to a structure or a pointer to a union.

+17
source

Source: https://habr.com/ru/post/1723088/


All Articles