+ 1
What does" ->" mean here?
b->fun()
4 Réponses
+ 12
You're basically accessing function fun() using pointer b.
b->fun()
is the same as
(*b).fun()
+ 1
it means: call function "fun()" from object "b"
0
b is the pointer object. hence it syntactically means member function fun from object b
0
مرحبا يا حسان