Add const to prevent modification: void print(const string& s) accesses s without copying, but can't change it. Combines efficiency with safety. Use const references for large objects you only read.
Passing a big string by value copies every character. Const reference passes just the address. I make reference parameters const by default. Only remove const when the function needs to modify.
Documents intent .