Function with & and without

hi everyone..
can you define me difference b/w functions

1
2
3
4
5
6
7
8
9
10
11
Void duplicate (int& a,int& b,int& c)
{
...
...
}

Void duplicate (int a,int b,int c)
{
...
...
}



i cant understand it.
thank you
closed account (j3Rz8vqX)
Function 1: Passed by reference.

Function 2: Passed by value.

http://www.learncpp.com/cpp-tutorial/73-passing-arguments-by-reference/
thank you......
Topic archived. No new replies allowed.