When to use the new-Operator in C++
During my C++ studies, there have been a bunch of questions which came up related to proper memory management, passing data structures and so long. One question was, when to use the new-Operator to instantiate for example a class and when not. Basically, you should use the new-Operator when you want to make sure, that…