Computer Science, asked by ronitrai2381, 1 year ago

What is dot operator in C++?

Answers

Answered by AmardeepS
0

The . (dot) operator is used to reference individual members of classes, structures, and unions. The dot operator is applied to the actual object.

The same character is used to seperate package names and Classes. The dot operator, also known as separator or period used to separate a variable or method from a reference variable. Only static variables or methods can be accessed using class name.

Stucture in C lang uses a dot(.) operator for access a member.

Similar questions