can someone please explain what -> operator does in C++?
Example below:
struct X{ int a[sz];}
void print(X* x){
for(int i =0; i<sz; i++){
cout << x->a[i] << ' '; // -> is like dereference??
My guess is that it assigns index i in array a with the value of the object that x is pointed to.