Sasi T. answered 07/30/19
I love to learn and spread knowledge!
Its usually best to use the former. Where you use the "&" to signify a pass by reference. The "&" is actually just a pointer under the hood. However, in C and C++ the "&" is designed to have safe guards in place so that this "under the hood pointer" doesn't point to non sense data values which could negatively impact the program.So I would say use "&" because it is safer, but they both get the job done. Happy to help. :)