diff options
Diffstat (limited to '6p13.cpp')
-rw-r--r-- | 6p13.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/6p13.cpp b/6p13.cpp new file mode 100644 index 0000000..e6cc1e7 --- /dev/null +++ b/6p13.cpp @@ -0,0 +1,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; +} |