+ 1

What does" ->" mean here?

b->fun()

2nd Apr 2017, 10:33 AM
Dhananjay Panage
Dhananjay Panage - avatar
4 Answers
+ 12
You're basically accessing function fun() using pointer b. b->fun() is the same as (*b).fun()
2nd Apr 2017, 10:37 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
it means: call function "fun()" from object "b"
2nd Apr 2017, 12:28 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar
0
b is the pointer object. hence it syntactically means member function fun from object b
2nd Apr 2017, 2:05 PM
Sohamkumar Chauhan
Sohamkumar Chauhan - avatar
0
Ù…Ű±Ű­ŰšŰ§ ÙŠŰ§ Ű­ŰłŰ§Ù†
3rd Apr 2017, 8:17 PM
khttar
khttar - avatar