+ 2
Why the pointer points to the object. What is the point of doing this
MyClass obj; MyClass *ptr = &obj; //why we did that ptr->myPrint();
4 Answers
+ 4
https://stackoverflow.com/questions/22146094/why-should-i-use-a-pointer-rather-than-the-object-itself
There you can see your answer
+ 1
bluesea ya thats a good pointđ
0
Thanks, that helped me:)
- 3
c++