blob: e6cc1e7b85aab6e929520ccdeb84ee2a0c5fbadf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
*
* 6.13
*
*
*/
int main () {
//void f(T): It means that the variable is copied from the arguments passed to the function
//void f(T&): It means that the variable is a reference to the variable passed to the function.
// So basically, when we use the variable in the function it is directly a reference to the variable
// that we passed so that variable is changed rather than a copy
return 0;
}
|