Is it always necessary in C++ to use the new keyword to initialise a reference to an object?
Can you please have this as well:
MyClass *myclass;
myclass->DoSomething();
I assumed this was a pointer allocated on the stack rather than the heap, but because objects are typically heap-allocated, I believe my idea is probably incorrect?
Please provide guidance.