Just out of curiosity, is there a difference between using “.” and using “->” in c++?
Normally, I think, the dot is used, but if that is the case for all code, why do we even have the “->” character? What do we use them for? Any help would be greatly appreciated.
New contributor
Squirrel Coder is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.