Why dot operator is used in C++?
Matthew Barrera
Updated on May 23, 2026
operator in C/C++ The dot (.) operator is used for direct member selection via object name. In other words, it is used to access the child object.
Matthew Barrera
Updated on May 23, 2026