notebook.community
Edit and run
int x = 3; int &y = x; // y is a reference to x
// pass by value void my_function(my_object temp) { } // pass by reference void my_function(my_object &temp) { }
int x = 3; int *y = &x; // y is a pointer int *z = y; // z ia also a pointer
int w = *y;
In [ ]: