what is the name of dot which is used in c++ between object and function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what is the name of dot which is used in c++ between object and function

12th Jan 2017, 5:10 AM
Fazle Rasool Rizvi
Fazle Rasool Rizvi - avatar
2 Answers
+ 1
It's called quite simply 'member access operator'. If you are using a pointer to an object (dynamic instaniation) it becomes an ' -> ' operator (or you can dereference the pointer and access member of that, the arrow is pretty much just a macro).
12th Jan 2017, 10:22 AM
Norbivar
Norbivar - avatar
+ 1
thank you Norbivar
12th Jan 2017, 10:57 AM
Fazle Rasool Rizvi
Fazle Rasool Rizvi - avatar