I read this similar question but after a few weeks of studying C++ one thing I am curious about is: Why use pointers or references in C++?
Not even why use one over the other, but just why not use the original value?
By default things are passed by value in C++ wouldn't a lot of the confusion and accidental side effects would be removed if the original value were always passed?
Is it simply so that a smaller value can be passed on the stack?