-> operator
Question: is the -> operator defined by C compilers or was it invented later for ease of pointer use in C++?
"You TK''ed my chicken!"
The -> operator is used with classes so that you don''t have to do (*Class).member, and since classes don''t exist in C, I would asssume that the answer is no.
Brendan
Brendan
Brendan"Mathematics is the Queen of the Sciences, and Arithmetic the Queen of Mathematics" -Gauss
The -> operator is also used with structs and unions. It wasn''t invented for C++, it was inherited from C.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement