Can a function with a const-reference as its parameter change the underlying object?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=r0Bt95Pf-AA



Duration: 2:41
2 views
0


Can a function with a const-reference as its parameter change the underlying object?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!

(stackoverflow.com/users/14714548/franz-ferdinand)Franz Ferdinand
(stackoverflow.com/users/5740428/jan-schultke)Jan Schultke
A special thanks goes out to the (https://stackoverflow.com/questions/76843480/can-a-function-with-a-const-reference-as-its-parameter-change-the-underlying-obj)Stackexchange community

I wish you all a wonderful day! Stay safe :)

constants reference parameter-passing c++







Tags:
constants
reference
parameter-passing
c++