As the topic says – What is the biggest problem that would occur if we dropped usage of pointers and resorted to only references in C++? Let’s say we have a new that returns a reference and a delete which takes one.
As the topic says – What is the biggest problem that would occur if
Share
It would make the language effectively unusable because references in C++ are not assignable.
Once you initialize a reference to refer to a given object, it can’t ever refer to any other object.