Difference between reference with const and without reference

  • Thread starter Thread starter Arash_89
  • Start date Start date
A

Arash_89

Guest
Hello,

What's the differences between these?

#include <iostream>
#include<string>
using namespace std;

void Test(int const& i)
{
cout << i;
}
void Test2(int const i)
{
cout << i;
}
int main()
{
Test(10);

return 0;
}



Thanks

Continue reading...
 
Back
Top