times operators c++ code example
Example 1: c++ .* operator
The .* operator is used to dereference pointers to class members.
Example 2: x += c++
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}
The .* operator is used to dereference pointers to class members.
int main ()
{
int a, b=3;
a = b;
a+=2; // equivalent to a=a+2
cout << a;
}