f1(char a)I dont want to modify the value of a in the function.
If I modify the function like this:
f1(const char& a)then is this an optimization or not?
My guess is that it isn't since the pointer used for reference is bigger the the size of a char being copied.
I'm I right?
Thanks!
This post has been edited by livium: 29 August 2011 - 04:13 AM

New Topic/Question
Reply


MultiQuote



|