C++: ptr->hello(); /* VERSUS */ (*ptr).hello();
- by Joey
i was learning about c++ pointers... so the "-" operator seemed strange to me... instead of
ptr-hello();
one could write
(*ptr).hello();
because it also seems to work, so i thought the former is just a more convenient way
is that the case or is there any difference?